PWM on DC motor

I've realized this circuit:

External power source, in my circuit, is 9V but i hope i can put 12V...

Did you intend something similar with transistor?
If your answer is yes, what about H-bridge?

PS: Sorry for my bad english...