Revive your unresponsive iPhone by forcing it to restart. Additionally, you can try charging the phone or reinstalling iOS.
If your iPhone won't turn off the usual way, you can force restart it with a button combination specific to your iPhone model.
iPhones are generally reliable, but they can still run into issues from time to time. Sometimes it's something minor, like the screen refusing to rotate or the keyboard freezing. At other times, the ...