Hard to see in the photos, but, like electrical stuff, you need out of the pump to a valve (comparable to a switch), from the valve to the cylinder, from the cylinder, fluid needs to return to tank one way or another. Hydraulic cylinders need pressure at the base to go out with fluid returning from the rod side. If it isn't a spring or load return, then the cylinder will need pressure on the rod side with fluid having a return at the base side for that rod to go in.