We had the same problem with our Whirlpool dishwasher. Bought it in 2019, then it stopped working 4.5 years later.
It would start up, fill with water, drop the dishwasher tab into the water, then nothing.
The wash cycle wouldn't start, the sprayers weren't turning or cleaning the dishes. Then it would drain the water, do a steam dry, and stop. But the dishes were still dirty.
I tried messing with the door latch but that didn't fix it.
I flipped the circuit breaker, jiggled the 2 blue wires underneath (connected to the motor), and gave the motor a couple good smacks just in case.
Magically, it worked again! Fingers crossed it keeps working. But at least I can repeat these steps in the future if needed.