I used to shoot a lot of motorsports photography, cars mainly and my main advice is to practice, lots!
It is easier with a longer lens as you are less likely to get distractions in the background.
This leads me onto my next tip, choose a location where the background is plain, a lone tree, or even worse a marshal in bright orange overalls can ruin a shot.
Shutter speed is the key to controlling motion blur, so send your camera to shutter priority, as a beginner I would advise starting at 1/125th and adjusting from there, I find that unless you are dealing with something extremely fast 1/250th doesn't give enough motion blur.
For the technique I advise tracking the subject as soon as it comes into view, give the camera a chance to focus on it, press the shutter then continue tracking the subject as it goes away from you, this should be one smooth movement of the upper body.
I found that having second cameras and or camera bags on my shoulder got in the way of the smooth panning movement, so this is also something to bear in mind.