I had a similar problem and eventually had to have my carrier give me a different phone.
It would charge to 100% while on the charger. Unplugged and it when immediately down to 0%. I was sent several batteries and none worked in my phone, but no problem in other phones.