Kinetic theory and changes in the state of matter