Chosen Solution

My iPhone 8 is not charging. I noticed that the outer housing of the lightning port has bent. I have got the lightning port inside replaced , but the phone still doesn’t charge.

You’ll need to either replace or rework the housing in order to get that working again, I imagine the cable isn’t connecting with the pins inside. You can just use a wireless charger though…