Thanks for writing your query.
After reading your post, it seems that you have suffered Concussion injury
You should take proper rest. Avoid any physical exertion. Donot watch television, mobile and text messaging. Usually the symptoms of concussion takes few days to weeks to recover.
Proper rest speeds up the recovery.
If the pain is severe, you can take pain killer like Ibuprofen
after meals along with an antacid
after discussing with your doctor.
You should also get a scan of your head done and consult a Neurosurgeon.
I hope this is helpful to you.