Molecules in a solid are tightly packed together, that's what makes it a solid. As it begins to change phase to liquid, usually as the result of some form of heat being applied, the molecules begin to move faster and roll past eachother and "flow"
Molecules in the gaseous state are moving at their fastest and will expand to fill the available space.
They start to get closer together
The solid changes into a liquid
use your book
When a substance changes from a solid to a gas, called sublimation, it quickly becomes less dense.
As a substance melts, the molecules of the formerly-solid substance becomes less structured and drifts further apart.
use your book
it heats up
it melts
The movement of the molecules making up the solid increases.
It sublimes
This change in the state of matter (liquid to solid) is called freezing, not melting; it is a physical change, the chemical nature of the molecules is not changed.
When a substance changes from a solid to a gas, the speed of the molecules increases. In the gas phase, the molecules have more energy and move more freely compared to when they were in a solid state where they were tightly packed and vibrating in fixed positions.