Left ear not working/connection problem

Hello! I have been using pre-packaged earphones with my iPhone XR for 1.5 years now, and recently they started glitching. After somewhat thorough inspection I concluded, that it is the lightning port (not the hole in the phone, I mean) that is causing trouble. Is there a way for me to replace the port? Maybe cut one from one of the old cables and solder all the wires? Is that even possible/worth trying?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0