Try new iPhone power supply
Apple
A place for Apple news, rumors, and discussions.
Is there some lint or other crud stuck at the bottom? Try using a wooden toothpick (you may have to use a knife to make the point thinner and sharper) to get the lint out of the lightning port.
It's most likely compacted with lint, stopping the cable from inserting in all the way. It usually compacts right at the back. You can use a sturdy toothpick or blunt tweezers or a paperclip even to clear it. Use a spritz of IPA alcohol into the port to loosen it up first.
And the pins lie at different angles, it's very easy to think you're missing pins, when it's just the light reflecting differently off them. They're probably fine, it takes a lot to dislodge them. Again it's probably just lint and debris buildup.