No spell will automatically impart knowledge. However, establishing a regular meditation routine can help with concentration, memory retention, and stress coping mechanisms.
There are also success spells which might aid, less directly, in your studies.
If you are new to magic, you will need a foundation in the basics: Meditation, Visualization, and Energy Manipulation. The General Info section of the forums, specifically the threads "The Basics: Expanded" and "Starting Out" are a good place to start.
But I would also suggest other research and reading on the topic, if you plan to pursue magic in your life.
Heres my suggestion to you. Be vague. Specifying that you want information on driving is too specific, and probably wont have anything to study on. Yeah, you read that right, study. Nothing comes easily. Youll want to search online first, get ideas in general of how to write a spell or anything else in general.
It sounds like you are dealing with concentration issues, so look for solutions to that first. Remember, spells arent some Hollywood creation where there is a giant book of answers. And even then, youll want to make sure everything you do feels right. Change a few words if it feels necessary. If youve got a general idea, try it on your own. Try to make sure what you read is reliable as well.
The two best ways I know to improve focus on a task are primarily, to remove distractions. When you drive, only drive. Don't eat and drive. If you choose to have music, set it before you drive, and do not change the playlist or station until you are stopped.
Secondarily, meditation helps improve concentration and focus.