start with the basics
link to the place you got the valve.
data sheet of the valve.
what happens when you put power to it directly ?
where is delay() !!! all beginners need to use delay() !
[pre]digitalWrite(solenoidPin, HIGH);
delay(1000);
[pre]digitalWrite(solenoidPin, LOW );
delay(3000);
where is your schematic ?
is the FET between your solenoid and ground ?
or did you put it after Vcc and before the valve ?
tip : use different times in delay. that way you know what condition is energized and which is not.