I bet they used a micro usb cable. Sometimes those things can be so janky my phone won't charge unless you kinda fold them and rest the phone on it a certain way.
The contacts on the lightning cable can be cleaned, which is often my problem. But because they're exposed they have to be cleaned.
Pocket lint in the socket also keeps it from seating. Digging that out is like playing Operation. The bits you can break are on the sides, so you have to push straight in to scrape out the lint.
I really should learn to put my phone in my pocket wrong way up so it doesn't catch all that crap...
If I were forward thinking enough I wouldn't have to do that. But you cram the lint in like you're loading a musket every time you plug a cable into the port.