When heated, particles vibrate faster, thus increasing the distance between one another. The distance between these particles results in changes of state. Therefore, increased molecular motion results in expansion of an object. This works vice versa for cooling. As the vibrations slow down, the particles become closer together. This results in contraction.