Holding down the shift key while turning a Mac on will boot it into Safe Mode. Here's how to start a Mac in Safe Mode and use it to diagnose issues.
Revive your unresponsive iPhone by forcing it to restart. Additionally, you can try charging the phone or reinstalling iOS.