1) If temperature of a substance decreases kinetic energy also decreases.
2) Kinetic energy decreases from water to ice. That means solid state to liquid state.
3) In winter season coconut oil in the form of liquid get down its temperature, hence its kinetic energy also decreases. So, it-freezes.
4) Water, which is kept in refrigerator loses the kinetic energy along with decreasing temperature and freezes.
5) In this way water converted liquid phase to solid phase.