Thanks for writing your query.
It seems that you suffered from soft tissue injury
Headache due to soft tissue injury of the head takes some time to resolve by itself.
Taking proper rest will speed up the recovery.
If the pain persists, you can take pain killer like Ibuprofen
one tablet twice a day after meals along with antacid Omeprazole
20 mg after geting yourself examined medically.
There is no harm in geting a X-ray done. But if you want to be investigated , geting a CT-scan of your head would be a better option.
I hope this is helpful to you.