Revive your unresponsive iPhone by forcing it to restart. Additionally, you can try charging the phone or reinstalling iOS.
When you're sure nothing is blocking your iPhone's camera, you can fix it in 6 ways when it has a black screen. Try them and ...