A two-way ball valve has only two ports and can only allow or disallow the flow. A three-way ball valve, on the other hand, has three ports and can be used to divert, mix or isolate flows from multiple directions.