Chosen Solution
I got a new battery replaced on my iphone 6 Then I got back home and put the phone to charge then it charged up to 76% then I removed the charger. Then I used it till it died (till it came to 0%) It was night then I plugged my phone to the charger and slept I heard the sound of the charging which comes from the phone once you plug it Then I left the phone to charge and then got up in the morning and my phone was dead I tried putting it back on charge it didn’t work Was it the battery that caused this error? Please answer quickly
Sounds like a bad battery, what was wrong with the old battery? It could be charging chip (tristar) if before the old battery just went flat and would not charge anymore then the battery was replaced which got the phone working but the same problem occurred again. Does the phone get apple logo with the battery disconnected but charger plugged in? If not then I would suspect charging chip has gone bad.