The molecules will move closer to each other. They will contract.
Explanation:
When there is energy in the particles, they will move move apart from each other. The will be far apart from each other and mostly the state of the matter will expand. It will be from solid to liquid to gas.
But when the energy is removed from the substance, the particles will move closer to each other. They will contract. The state of matter will contract from gas to liquid to gas.