try to make emrgency calls if phone still restart then it is hardware problem if not then it is software problem
if not restart during emergency calls then try to flash ur phone with new working firmware (after backup)
if ur phone restart then check hardware network area,sim area,cpu |