Is there poor contact in the connector?
Repair the poor contact.
Replace the AT shift lock control module.