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 than a normal restart.
When iPhone issues persist despite trying simpler fixes, a factory reset might be your best solution. You might have already ...