Hi
It sure is strange how it did charge then stopped isn’t it!
Iv seen similar thing like this before so I would try the following
Unplug the battery from the logic board and clean the board connector and the battery connector carefully with a cotton bud and isopropyl alcohol
Try booting into safe mode and charging
If that doesn’t work I would get I touch with whoever sold you the battery and see if it’s faulty
Hopefully this helps
Thanks:-)