Which of these phase changes requires energy?

A Boiling water on a stove
B Making dry ice from carbon dioxide gas
C Freezing water into ice
D Condensing water vapor to rain