Is this with the iPhone 7? I'm assuming that you've done a soft reset...if so, I suggest that you make a backup and then do a full reset and restore and see how you get on.
For 20 minutes yesterday my 7 was completely unresponsive. Screen wouldn't sleep and wouldn't power off. Soft reset wouldn't work either, just kept screenshoting.
For 20 minutes yesterday my 7 was completely unresponsive. Screen wouldn't sleep and wouldn't power off. Soft reset wouldn't work either, just kept screenshoting.