Check the joy stick linkage. It may not be fully stroking the valves in one direction causing the loss of function. There may be debris restricting linkage movement.
The one valve dumps the swing pump to tank. If the valve did not close all the way you would have reduced or no swing function. The other routes the power beyond from the loader to the 3-point. The backhoe is connected to the power beyond. Blocking power beyond to 3-point sends the power beyond oil to the backhoe. If the valve is leaking you would have reduced or no function on boom, dipper, bucket and stabilizers. As that is not the condition you describe, the joy stick linkage is the likely suspect.