If your water heater is running out of hot water quickly or is producing lukewarm water, it could be due to two main reasons. One- the heating element or the thermostat must have burned out. Two- over the years the inner tank must be clogged with sediments and scale buildups.