This is an Android phone which means that you could use a built-in option to restore it to the factory defaults. You can do this from Settings > Privacy > Factory Reset. Most likely a system file was corrupted and because of that, the phone reboots. Additionally, the cause might be related to an application you've installed recently. Uninstall it and then observe its behavior.