Chosing the right transistor

The circuit I posted does not show a 2N3904 transistor directly controlling a motor.

A 2N3904 can't support the motor stall current, which you have yet to tell us, but is probably greater than 1 Ampere.

Google "arduino motor control" for other examples, but avoid Instructables.