Typically, Android phones are built to restart after 8-10 seconds of keeping the power button down. Your device may restart repeatedly or shut off automatically if the power button is faulty. If you have a phone case, take it off for a few minutes to help clear things up.