Solid > Liquid
This process is called melting: you apply heat.
Liquid > Solid
This is freezing. You remove heat.
Liquid > Gas
Heat is added. The process is evaporation.
Gas > Liquid
Removed heat: condensing.
Diagrams are helpful to understand this concept. Be aware that you don't need to know the process between solid and gas/ gas and solid.