Need a bit more info.
What is the size of the water heater?
Gas or electric?
How old is the one that is currently in place? If it's more than 5 years old and electric then it's likely it needs replacing.
Sounds to me that the element or the temp control unit failed. As that the only parts...