tryiing to get a stepper motor to work on ardiuno

Can you make the motor do anything?

yes I have had it working on the arduino with the coding on the arduino software under stepper what makes the motor rotate backwards and forwards but cannot control it. It does what it wants to do

It does not do what it wants to do. It does what you told it to do.

Apparently, what you told it to do, and what you wanted it to do, are not the same thing.

Post that code that does something, and describe what it does, and what you want it to do instead.