turn on 12v from 2n2222a 5v source
wire up something like this

RLY1   RLY2  MOTOR
off    off   stopped  
off    on    spins one way  
on     off   spins other way  
on     on    stopped 








simulate this circuit &ndash; Schematic created using CircuitLab