Can you try to boot into safe mode:
If your phone doesn't restart while in safe mode, it could be an app is causing this issue. As such, you should uninstall your apps one by one, beginning with the most recently downloaded, until you find the dodgy app.
If that's not the case, check for signs of overheating. Your phone will reboot to try and protect itself.