Solid expand when they are heated, and decrease in volume when they get colder.
From a microscopic point of view, the result of heating a material can be explained as follows:
There is an addition of energy to the material
The internal energy of the atoms of the material increase, causing atoms to vibrate
The vibrating atoms now occupy more space when hot compared to when cold