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 fix the issue.  Forcing a restart is different from a normal restart.
If your iPhone won't turn off the usual way, you can force restart it with a button combination specific to your iPhone model.