Answer:
When particles gain energy (they gain heat), they undergo a transformation in order to accommodate this. When a particle gains energy, it gets excited. As a result, the atomic attraction becomes weaker and they break free from each other. This leads to the matter increasing in volume: solid -> liquid -> gas.