When I cough or strain I get pains in my head?

Possible sinus. Purely an educated guess over the computer, but sinus disease can certainly cause those symptoms. See a dr. For an eval, and proper dx, best wishes.