iPhone won't charge unless I hold the cable at an angle

The cable only charges if I hold it a certain way. Different cables do the same thing.

The port is almost certainly packed with pocket lint. Power the phone off and gently scrape the inside with a wooden toothpick, never metal. You’ll be surprised what comes out.