Firefighters said a hot water heater malfunctioned and sparked a fire inside a wall. The flames then spread to the attic.