A check valve restricts the flow direction. A spool valve, is a single input , two output device, Imagine a tube with an input in the centre and two outputs at each end. The "Spool" can move up and down so as to direct the centre flow out at either end (one at a time). A solenoid valve is just a valve that is operated by an electric current. To maintain the pressure, err, you need a pressure release valve that bleeds any excessive pressure away to the sump.
frank