Thanks for writing your query.
After reading your post, it seems that you have suffered from Concussion injury
It takes few days to weeks for complete recovery.
Proper rest speeds up the recovery. You should avoid any physical or mental exertion.
Also avoid watching television, computers and even text messaging.
If the problem persists, get yourself examined by a Neurophysician and get a scan of your head done.
I hope this is helpful to you.