Here is a common issue:
1) The seal for the circulation pump starts to leak slightly. Sometimes from debris on the seal, sometimes from wear.
2) A small quantity of water/soap gets on the motor bearing nearest the seal. Causing rust on the bearing.
3) The motor seizes up.
4) The motor has "thermal protection" so it shuts itself off after getting hot.
The solution is probably to purchase a new circulation pump assembly. As the pump and seal generally cannot be disassembled without breaking the plastic impeller.
However, every once in a while, some debris gets into the seal area and creates the leak. Cleaning this out is SOMETIMES possible, once the pump is in your hand, using spray lube like WD-40 and 150PSI compressed air. While turning the motor and flushing out the seal. Then lube the motor bearing with something a bit more robust than WD-40.
I've resurrected dishwashers this way.