Did this happen suddenly, after the phone getting wet, being dropped or anything similar? Have you received recently a system update? You could try leaving it charging for a while and see what happens. It's quite difficult for us to be sure what's going on.