This is a setting in iPhone. When it detects you have your phone to your ear, it will turn the screen off until it realises you’ve moved it away. It’s basically to save power. It’s with the proximity sensor. Do this: Restart your iPhone Check if any objects are in the way