Which is the stepper motor you are using? what is the part number? Have you found the pattern in which the voltage should be applied to the pins of the stepper motor? Have you done the hardware required to drive the stepper motor?
Please post the above details along with the circuit diagram of the hardware, then only someone could help you with the code.