As the temperature decreases, movement of particles also decreases. Particles comes closer and interparticle attraction increases. In that case particles can change its state from gas to liquid or liquid to solid state depends on the decrease in temperature and relative to condensation point of gas and freezing point of liquid.