When you pour two table spoons of water inside can and kept on the burner, the water reaches its boiling point and leaves steam. This steam occupies the rest portion of the can inside and substitutes all the air molecules.