No matter how good the iPhone is sometimes you are going to need to hard reset the phone, on all phones up until the iPhone 6s you had to hold the power button and home button together to hard reset the device. 

The iPhone 7 and 7+ have changed the home button to a solid state so now to hard reset it you have to hold the power butting and the volume down button.