The contractile vacuole functions by controlling the intracellular water balance by accumulating and expelling excess water out of the cell.