In case of ice, the water molecules have low energy while in case of steam the water molecules have high energy. The high energy of water molecules in steam is transformed as heat and may cause burns. On the other hand, in case of ice, the water molecules take energy form the body and thus, give a cooling effect.
