The little nipple going to your pressure switch was probably plugged up to start with. Then your pump could not shut off as it should. The high pressure was from the pump doing all it could and dead heading against the high pressure. This means there is no flow to cool the motor, and the motor burns up. Then the control box goes to clicking and buzzing every few minutes, trying to restart the bad motor. The motor is destroyed, and the control box probably burned up trying to start the burned motor. You will be lucky if the high pressure didn't also burst the bladder in your tank. And if you didn't replace the pressure switch and clean out the nipple it was attached to, it can all happen again.