Model train speed controller issue

I forgot to mention there is a doid between 12v going to motor and the ground going to transistor!
:man_facepalming: