This thread's discussion is locked. If it doesn't give you the information you need, head to its forum board for active discussions or to start a new discussion.
If you have an Apple Store nearby, I'd say talk to them. I suspect an iPhone 5 is likely out of warranty at this point.
If you find a post useful, please give the author a "Like" or mark as an accepted solution if it solves your trouble. 🙂
Try a fresh cable, and a fresh charger (or a computer USB port) to see if it is the phone or charging parts. If you determine it is the phone, contacting Apple would be the next best step, as they handle warranty claims for their products.
If you find a post useful, please give the author a "Like"