Me and my brother had this issue when we were younger. It has something to do with the battery. You could've fried it. Either the phone got too hot or you kept using it while it was on the charger. An uneven flow of energy can lead to the battery frying itself. I had an older model Samsung where I could take out the battery. Even though it looked completely fine it was completely fried. We took it to a shop and they just gave us a new battery.