Usually this is because water has gotten in the connector in the past, corroding the contacts. It will work fine if its left un-disturbed, but if you are to unplug it, then replug it, you can have problems as the terminals in to connector arn't making a good connection. Sounds like the earth pin...