Chosen Solution

This is not the first it happens to me. My iphone battery is still pretty good but I can’t charge it anymore. When I plug it, sometimes it charges and sometimes it doesn’t. I don’t exactly know what is the name of the battery port so I don’t know either what is the piece I need to buy in order to fix it. Please help!

@jaydl it sounds to me like you are talking about the lightning connector. Check this guide iPhone 5 Lightning Connector and Headphone Jack Replacement for that. You want to make sure that you always use an original cable. iPhone’s are very sensitive that way :-)