My iPhone 5 doesn't charge but usb works?

So heres the details on my problem.
When I plug in my iPhone to an outlet or my computer, it shows the little lightning bolt that says its charging, but it doesn't charge no matter how long i keep it plugged in.(and i have no apps running so there's no way that thats draining my battery). The usb does work because I was able to put in music with it. I haven't dropped it in water for the battery to be damaged either. I was wondoring if anyone out there had the same problem with their iphone and know a way to fix it. I already did a full factory reset on it and it fixed two other problems i had with my phone, but it didn't fix the charging problem. I'm not looking for someone to tell me to take it to apple, because I know and already have an appointment in a few days, but would like to know if there's a way to fix it alone.

The battery may not be able to hold a charge any longer eaither your battery failed or it is old and time for a new one. The best way to get it checked out is to call apple explain the issue and have them check it out by sending it to them they will charge you to fix it but if you want it fixed your going to have to pay. There's a way to do it yourself i'm sure of it but by opening the iphone you void the warrenty and if you further cause damage to it apple will not fix it. Best thing to do is seek professional repair from apple.