Controlling speed of dc motor

Ah sorry speedPin=9. Just changed it, no difference. It is connected to leg one of motor driver ic right?