Headache can be due to any reason being just trival to any pathology in brain. You need to give details how it began , how long, how severe, how u get relief etc.
Next Steps
If the medications are not helping than u need to see whether ur following the advice of doctor. Avoid electronic devices and try relaxation techniques.
Health Tips
If still have headache then consult.
Thanks