Assuming that the motor winding resistance and current rating are appropriate for your motor driver and battery supply,
the motor runs as fast as you command it to, up to a point. Post the program code, using the “code” button for proper formatting, and we can probably help.
However, for proper operation it is essential to know the motor parameters, most importantly the current rating and winding resistance.