Start your phone in Safe mode and see if the restart stops. If it does, then you know some app or setting is causing it.
Press the power button till the power options are show. Then press on the Power off option till you see the Safe mode option. Then press on the Safe mode option.