This solenoid work with 24VDC and have 3 pin/ wire. There is No 1, No 2 and GND pin. I will never tried to wiring directly without enough information. How to switch the solenoid valve position (from A to B and from B to A) with 2 wire 24V adapter (24V and GND)? What does (-) (+) mean in wiring diagram? The full manual book is here. Learn how to wire a DIN connector to a solenoid valve with this guide on the globally accepted standard for electrical connections.
This video is about DIN connector. Five-pin male 180° DIN connector from a 1988 Schneider MF2 keyboard by Cherry The DIN connector is an electrical signal connector that was standardized by the Deutsches Institut für Normung (DIN), the German Institute for Standards, in the mid 1950s, initially with three pins for mono, but when stereo connections and gear appeared in late 1950s (1959 or so), versions with five pins or more.