Are you running the current version of iOS?
If your iPhone, iPad, or iPod touch unexpectedly restarts - Apple Support
If you have the latest version and a forced restart does not help, try connecting to iTunes and doing a restore.
If your iPhone, iPad, or iPod touch won't turn on or is frozen - Apple Support