Lint, bent pins or a failing cable — a quick triage before you book a port repair.
If your phone only charges at certain angles, clean the port gently with a wooden or plastic toothpick — never metal. Test with a known-good cable and charger too.
When it still will not charge, the port or board-side connector may need replacing. Most phones are same-day jobs once we confirm the fault.