When heat is supplied to any matter the molecules of the matter get energy and they start vibrating faster, which is the kinetic energy. due to this energy, they push each other and hence moves away. As in the ice, the molecules receive heat energy and they also start vibrating and pushes each other away, changing the state to liquid, more heat changing to vapours..
Hope it helped.
please give as the best if helped.