How do plants absorb water from the soil?

because its roots absorb the water then into the stem and then gives it water and sometimes food