Too small a wire, or a poor connection in the wiring, will do that. Try shorting at the solenoid with a jumper wire, if it works then , its wiring.