A headphone port fails when the contacts, which read the auxiliary cable, become dirty. This results in the signal between the cable and ports being blocked. Use the following instructions to repair a headphone port on a laptop.
The best tool to use for cleaning is a cotton swab. Start by peeling the excess cotton from its tip, leave just enough so it can enter the port.
Dip the cotton swab in alcohol.
Use alcohol to clean the headphone port on the laptop. Once finished, plug the audio jack in and test to ensure that the headphone port works.