How do plants “drink” water?

You may know that you have to water plants to keep them alive, but how do plants get water from the soil into the parts they need?