You have to find the fault and fix it.
Most common is the brushes are worn on the motor.
On older machines, that would give you a flashing 'door open' light.
If it let the water in, and the pump pumped it out, brushes are the first thing to check.
Then water heater etc etc ...
Mike, August 2012