Are you absolutely sure that the coils are correct? When disconnected, is there continuity between the B-&B+ pair and separately between the A-&A+ pair? (And no continuity between the pairs?) Sometimes you can't go by color.
I can't follow the colors in the photo, and I don't have specs on you motor pins/colors anyway.