A decrease in temperature causes the water molecules to lose energy and slow down, which results in water molecules that are closer together and a decrease in water volume. When water is heated, it expands, or increases involuntary. When water increases in volume l, it becomes less dense.
Hope this helps :)