IPhone 6 left out in sun
Let the phone cool down for a couple of hours (place it by a fan), then plug it into your Mac and hold down the iPhone's power button and home button together for 20 seconds for hard reset.

You could try the hard reset first, if you choose.