So far you have indicated that your eye pain started gradually without any change in your vision.
Eye pain that is accompanied by a headache may be caused by a sinus infection, migraine or can potentially indicate a more serious medical problem. Or it is possible that the eye pain and headache are not directly related.
Do you have a headache in addition to eye pain?