I have a pneumatic system like this:

The motor moves a mold in and out of a press. The limit switch is supposed to de-energize the solenoid valve, reversing the direction of the mold as the switch runs up on a cam. When it runs off the cam, reverse motion stops. The operator can then retract the mold.
Instead, the mold stops but it will not move. Air should flow out of the exhaust port of the solenoid valve but it doesn't. Apparently, the solenoid valve is not shifting. However, we put it on a test bench and it works perfectly. We check voltage at the solenoid plug and it is correct (120 VAC). This circuit is too simple to not work, but it doesn't. Any suggestions?