Valves control the flow of liquids and gases through pipes and vessels. They are classified based on their operation and have basic parts like a body, bonnet, stem, and seat. Common types of valves include gate, globe, ball, butterfly, check, and diaphragm valves which control flow using a gate, plug, ball, or flexible diaphragm.