When fire brigade arrives, it pours water on the fire. Water cools the combustible material, so that its temperature is brought below its ignition temperature. They cut-off electricity and remove the combustible material from surrounding. This prevents the fire from spreading. Water vapour also surrounds the combustible material, helping in the cutting off the supply of air. So the fire is extinguished.