problem with pwm

Because I do not know use how the pwm.

You don't know how the PWM does what?

What motor controller are you using? You can't directly control motors from the Arduino.