An iPhone that keeps restarting is a serious but uncommon problem. Here are a few ways to try and fix the issue.
Recovery mode allows you to update or restore your iPhone using a computer with iTunes or Finder. Here's how to access it.