In this video I replace the Lightning port on an iPhone 5s. The replacement assembly also includes the headphone jack and microphone. Do this at your own risk! I recommend watching multiple videos and reading the ifixit guide below.
Lightning port repair assembly: https://amzn.to/2DsrbMz (affiliate link) This includes an iPhone toolkit.
ifixit.com guide: https://www.ifixit.com/Guide/iPhone+5s+Lightning+Connector+Replacement/20261