The main idea is to keep motion in your mind as a tool when you’re photographing things that are, well, moving!
It your case it looks like it was a relatively overcast day and this means it’s darker. So you can work with that to achieve this look using the appropriate shutter speed.
If you want to practice this technique get a friend to ride past you on a bike while you take photos…
In your case to improve this specific photo you could be a little closer (but always be safe) and try to ensure that more of the car is in focus. You do this by being at a right angle to the subject in motion and by keeping the car in the same position in the frame throughout the exposure time.
It’s easier said than done…
On your next photo it appears as though you’ve setup your shot incorrectly as the entire frame is out focus.
If you’re want a shallow depth of field photo it’s best not to use a landscape type shot like this.
If you want deep depth of field (everything in focus) this is a great place to shoot that photo.
In your case almost nothing is in focus.
To get everything in focus you might want to choose the smallest aperture setting on your camera (the biggest fstop) f/22 or something like that.
You will also want to put the camera on a tripod if it’s not bright enough to have a fast enough shutter speed at that fstop.