are particles gaining energy or losing energy ?

CONDENSING
FREEZING
MELTING
BOILING​