In Ammonia three hydrogen are attached to nitrogen.
It can be liquefied by applying high pressure and lowering the temperature.
When a high pressure is applied to Ammonia gas, it gets compressed as intermolecular distance starts decreasing (into a small volume), and when we lower the temperature, approximately , it gets liquefied.
So, we can say that Ammonia gas can be liquefied (turned into liquid) by compression and cooling.