Wiring a linear actuator with external power source - 3 wires.

So this is how i got the wiring going now.

I can control it using
int pin = 3;
void setup() {
pinMode(pin, OUTPUT);
}
void loop() {
digitalWrite(pin, HIGH);
delay(2000 );
digitalWrite(pin, LOW);
delay(500);
}

Trouble is when i connect the green wire to normally closed the aktuator doesn't move in either direction. If i disconnect the green wire it will do as the code requests.

Is it possible to control which directions it goes with this setup, and how?