An iPhone that keeps restarting is a serious but uncommon problem. Here are a few ways to try and fix the issue.