Did you recently install any app? That can cause your phone to auto restart. Also, check the back, do you notice any bump? Bad batteries cause automatic restart as well.