I have this problem with my 5. My 5s and 6 work fine. I've tried many different cords and computers. The answer is simple. The port on the 5 is bad. The port needs to be replaced. A simple Google search can show how to repair it if you are up to that. Or just take it in to an iPhone repair place to get it fixed.
11/16/14 at 7:51am