When I had this problem, it was the battery. It was completely dead and required an official charger to charge the phone. Worked fine once it was charging with an official charger.
open