i think middle wire is the wire that control the motor rotation direction.
because if i manyally connect to gnd or 5v then motor change direction.
i tried connectind to arduino pin 3 and use digitalWrite(HIGH) and digitalWrite(LOW) but im not able to make motor rotate forward so i think i cant give a real GND to it
coz if i dont add gnd its 5v (i think it is like pullup resistor) if i dont connect anything wire is 5v and motor go in one direction if i connect GND then it switch to other direction,
so if there is a way to send GND on it i think it can do the job
Show your code. Maybe you did not make the pin OUTPUT?
Measure voltage on the Arduino pin when disconnected from the driver. Does it go HIGH and LOW as expected? This is probably a logic input, you should have no trouble to drive it directly from Arduino.