A 3-way Valve is a valve which let the fluid pass through 3 different ways. their are different type of 3-ways valves. A 3-way "ball" valves for example have an L- or T-shaped hole through the middle that's let the fluid goes in one or the other way.
3-way Valves diagram:
3-way Valves diagram: