Temperature is a monotonic function of the average molecular kinetic energy of a substance. As energy in particles increases, they start moving faster and faster, weakening the intermolecular forces between them and therefore expanding the substance. When a substance is heated, molecules begin to vibrate and move more, usually creating more distance between themselves.