Speed control of DC motor with arduino

Now, it works with your code. Previously i didnot connect both R_EN and L_EN to pin 8.
But when I apply the code to vary the speed the motor doesnot respond.