Have you tried a different charger and cable? It can be they. I also am not sure if it is possible to try another battery I that model.
If you can't test the battery and another charger don't work, you will need to see if you can get it replaced under warranty.
Manage your T-Mobile account