That sounds like the overheat sensor is triggering, then after a little while shut down it resets and allows the pump to run again. Either the pump is actually overheating, or the sensor has failed. Overheating can be caused by something blocking water flow, or when a 120 volt pump is instead getting 240 volts.