Step-by-step explanation:
If the kinetic energy is less than the attractive forces, a liquid or solid will form.
The average kinetic energy of the particles in a solid is very less almost negligible this is because they have high attractive forces between their molecules as they are tightly packed in regular lattices and are vibrating about their mean positions.
Therefore, freezing of a liquid or the sublimation of a gas results in the formation of a solid. These two phase changes result in the overcoming of K.E completely.