Self Balancing Robot project- wheels only spin in one direction

I have checked the wiring for my project to ensure there were no faulty connections, yet the wheels still spin at a constant rate in one direction.