Thanks for the question. I understand you are experiencing issues with charging your iPhone 5. The following resource may help to resolve your issue:
Battery does not charge
1. Verify that the outlet being used is working.
2. Try another USB power adapter if available.
3. If no other USB power adapter is available, try connecting to a high-power USB 2.0 port (not a keyboard). The computer must be turned on and not in sleep or standby mode.
4. Try another USB cable if available.