Ball valves and gate valves