Matter exists in three states:
Solid, Liquid and Gas.
The state of a matter is determined by two factors:
1. Temperature and
2. Pressure
These two factors respectively control
(1) the kinetic energy of the particles and
(2) the distance between the particles thereby, the intermolecular force of attraction. If intermolecular forces are the very large and kinetic energy of the particles is much less, the matter will be in the solid state.
If intermolecular forces are very weak and kinetic energy of the particles is very large that can overcome the force of intermolecular attraction and set them free to roam about, the matter will be in the gaseous state.