I am making this robot that will go forwards running both dc motors until it sees an object in it's way with the ultrasonic sensor. Once it sees one, it will stop look left and right for a clear path. Once it finds a path, it will turn using one motor and go that way. this will repeat forever
Poethetortoise:
Well i have the 9v battery hooked up to the arduino uno in the power jack.
Those tiny 9V batteries are a horribly expensive way of powering an Arduino, but powering something power-hungry like a motor from them is even worse. You may even find that the motors are drawing more current than those tiny batteries can supply and you end up wasting your power overcoming the batteries internal resistance. For that sort of application, a set of AA rechargeable batteries in a small holder would be a more sensible solution.
Poethetortoise:
do all of the connections look okay?
No idea, it's impossible to tell from the pictures. You need a wiring diagram showing what the connections are.