Headache and eye pain
is not related to vaginal soreness and infection.
Headache is usually seen in association with migraine
or in case of eye problems like uncorrected refractive errors or inflammation of the eyes.
Hence I advice you to consult your doctor for examination and treatment accordingly for headache.