Measure the resistance of the motor coils. Measuring voltages is unlikely to be useful - especially if you are not using an oscilloscope.
What size is the motor?
Can you tell, by turning the motor by hand, or with the working code, how many steps the motor makes per revolution?
...R