Valves controlling the flow direction and thus the direction of movement or rotation of hydraulic actuators