Have HVAC Questions? Ask an HVAC Expert for Answers
You may have a bad or loose connection on the thermostat wires to the outside unit. Check all the thermostat wire connections and see. The other possibility is a bad control board as you would be resetting it when pulling the plug and plugging it back in, these issues are always tough to say 100% as they are infrequent and until it becomes a constant issue it is always just a guess at the issue.
The control board in the attic