HELP needed for NIDEC 24H electric motors & Arduino. Self balancing Cube project.

I'm trying to make a self balancing cube, but I can't even make the motors to work, when I connect it to MPU6050 with Arduino NANO. The motors are: 1) 8 wires on NIDEC H24 and 2) 12 wire NIDEC H24. Any help would be greatly appreciated! Thank you!