If your water is turned off, your water heater will have nothing to heat. If it continues to run, it can cause damage to the internal mechanism and impact the machine. Many water heaters will automatically shut off, so you'll need to reset them when you turn the water supply back on.