First project - help with code and vibration motor

Physwiz:
Yes. I’ve 330 and 220. Where would I put the power onto the circuit so that the output 3 still controls the transistor?

Connect the Collector (on the transistor) to the minus lead on the motor, and the positive lead, of the motor, goes to some external source, like the positive side of two or three AA cells in series (as advised by slipstick). And, of course, the negative side of the battery (i.e. the 2 or three AA's in series) goes to the Emitter (on the transistor).