Your device could have a faulty power button which may need to be replaced. Your problem could also be caused by an old battery that can't hold charged, or a faulty charging port that prevents the battery from being charged. Your problem may also be due to a faulty motherboard.