Hi Paul and welcome. Very clear that you have an electrical fault. Without testing the circuitry with a multi meter I could only guess where. Faulty pump, poor connection, even the new pub may be faulty.
I admit to being confused with.
“the pump was working intermittently running on its own ??”
Is that was or is, what is happening now?
John,