Plastic Festo Solenoid Instructions
Notice that there are two different types of these Festo valves that look the same but require different wiring schemes.
If the valve doesn't operate try the alternate wiring method. It won't hurt it to be wired the wrong way.
I'd test it for the proper wiring using alligator clips before hardwiring it.
When you get it working I'd suggest marking the case with a sharpie noting the proper way to wire it for future generations.