Balancing robot for dummies

I've bought the pololu 29:1 and the relative motor control. So i've a questions: How connect the wires of motor and encoder to arduino and motor control?