Follow this youtube link:
It's about finding the right pins of a 6 wire stepper motor. There are similar videos of the same maker about 5 and 4 wire steppers. These helped me out!