Need help making the circuit for using a potentiometer to control small DC motor

Third pin goes to gnd