A solid can be converted into liquid and then to gas by decreasing the pressure and increasing the temperature.
A gas can be liquefied by increasing the pressure and decreasing the temperature. The same is the method for converting a liquid into a solid. Every state of matter of any substance is stable at a corresponding pressure and temperature. Thus, temperature and pressure determine the state of a substance.