Gauge was zero pressure and the switch had clicked on.
As it seems you heard the pressure switch click on when the gauge was reading 0 psi, then the problem is not the thermal overload in the pump, but is the pressure switch. If the pump's thermal overload was the cause, you would not have heard the pressure switch click-on as that would have previously occured when the system pressure was reduced to 40 psi.
Although your water system is again working properly, the issue has been intermittent which is always the most difficult to diagnose.
Perhaps the pressure switch is not activating the pump correctly more often than you are aware. You became aware of the problem those few times as there was no water being delivered to your faucets, but if the switch is sometimes activating the pump before the system pressure dropped fully to 0 psi, you might not have necessarily noticed depending on what you were using water for at the time. Instead of activating the pump consistantly at 40 psi, the pressure switch may be sometimes sticking and activating randomly below 40 psi. If activated at 35, 32, 28 or some other random pressure, you may not have noticed.