If your iPhone isn't responding and you're not able to power it off and then on again, you can force restart it to hopefully ...
On an iPhone 6S or earlier, press and hold the home button and power/lock buttons until you see the Apple logo. Don't bother swiping to power down if that option comes up, just keep holding those ...