H bridge working with led but not with electric motor
Oh man, everything is wrong.  Sorry.
The Transistors
The TIP122 is an old-school, power, Darlington transistor.  The power part means it won't fry trying to conduct the current the motor &quot;wants&quot; (it's rated up to one amp, your BC547 parts are rated at 0.1A continuously).  The Darlington part means that it doesn't take much base current -- and you need that if you're going to drive the thing from a microcontroller.
The Schematic
If you look at the picture, it's easy to count three base resistors, and there's another one hiding behind the left transistor in the foreground.  With the two resistors shown in the schematic, the transistor connected to ground &quot;shorts out&quot; the signal to the transistor connected to power -- so your upper transistor will never come on, or will only come on weakly.
The Supply Voltage
The motor is designed for 1.5V, so there's no point in using a voltage that's much greater than 1.5V plus the drop in your circuit.  If you modify your circuit to match what's pictured, the high-side transistors will act as emitter-followers, and will run at your microcontroller's output voltage minus their base-emitter drop.  For the TIP122 that's 1.5V (because they're Darlingtons).  For a &quot;plain old&quot; silicon NPN that's more like 0.7V -- except such transistors need more base drive for the same collector (and emitter) current; you don't have that much drive available.
So -- find yourself some Darlington transistors that are capable of driving 1A collector current, use about 5V for VCC, use this schematic, and you should at least be able to turn the motor.



simulate this circuit &ndash; Schematic created using CircuitLab