Three states of matter are the result of a balance between intermolecular forces and thermal energy of the molecules.