How to control this stepper motor?

Look at the stepper library that comes with the IDE. It has wiring diagrams for both unipolar and bipolar motors. Yours looks to be bipolar.