Question [Q] Weird Phone behavior

Well, my phone is weird....
battery seems to charge without charger...
sometimes i connect the charger and it didnt charge...
then i need to take off battery, restart phone...and it goes normal!

some tip to fix that thing??
thanks