If the charging port on your iPhone is damaged, you need to get it professionally repaired. You can try cleaning the charging port with compressed air or a mini-vac.