Why do some molecules form a liquid or solid at sufficiently low temperatures?
Molecules that are solids or liquid at room temperature have attractive forces between the molecules that overcome the forces from molecular motion that is determined by temperature. Gases like oxygen and nitrogen are very complete molecules that do not have strong attractive forces. To make then solid, you must remove much of the energy of molecular motion by cooling them to a much lower temperature. Then they can become liquid and then solid.