Matter is composed of particles that have kinetic energy. Particles with greater kinetic energy tend form liquids or gases due to increased rates of activity of the particles. Particles with lower energy tend to form solids. So, a solid forms when the average energy of a substance's particles decreases.