Refrigerants work by changing phases from a liquid to a gas and back to liquid again in a continuous cycle, absorbing and releasing heat in the process.