Water helps in extinguishing the fire in two ways :
(i) It brings the temperature of the combustible material below its ignition temperature. As a result, the fire gets extinguished.
(ii) The water vapour formed due to the heat of fire cuts to supply of air. Due to the absence of air (supporter of combustion), the fire gets extinguished.