In solids, vibrational energy takes over. In solids, the molecules don't really move too much. They vibrate. And this vibration is created due to repulsion and attraction of protons and electrons. Now, if we look at this diatomic oxygen molecule, we'll see that this is the case. This diatomic oxygen molecule is composed of two nuclei.