That will probably be a dish-washing machine then... not a clothes washer.
They heat the water with an electric element - a thermostat regulates the temperature - the thermostat may be defective - or some control circuitry...
Best let an expert look at it.
Good luck...
Peccavi
December 2012