Chosen Solution

battery is still good but phone does charge it.

tomasulang2006, try a different charger and a different cable. If that does not work you will have to take a closer look at the charging port. Disassemble your phone using this guide and check your charging port. I’d replace that, but it is soldered to the board so you will need some soldering tools and skills.