Get us a picture of the harness/plug you are talking about and post it.

Sounds like you need to disconnect that plug, clean the terminals and apply dielectric grease to the contacts.

Likely one of the terminals has corroded or gotten loose.

More info please