Your iphone charging port need regular cleaning to perform well and last longer. Here's the safe way to do it without damaging sensitive components.
Power off the device completely before cleaning the charging port to avoid short-circuiting.
Shine a flashlight into the port to see the extent of lint and debris buildup.
Use a wooden or plastic toothpick to carefully scrape lint and debris from the port. Work gently along the walls -- never force metal tools inside.
Use a can of compressed air in short bursts to blow out loosened particles. Hold the can upright to avoid liquid propellant.