Eye pain with headache is most probably because of dryness of the eye, but it can be a cause by irritation of the eye, glaucoma, infection and foreign body in the eye. Any space infection in the eye like the vitreous hemorrhage or any other tumor in the eye. All these cause cause headache and eye pain because all these nerves are interrelated. It is pulling on the head and this pull will cause headache. If the eye is sticking together when you wake up in the morning then most probably it is the bacterial infection so you have to wash the eye. Do little hot or cold fermentation. It depending upon what suits you. First is go to an eye doctor, they'll tell you a lot more. They can recommend you eye drops and some exercises. Use milk, it contains high amounts of fat. It helps in reducing puffiness, strain, irritation in the eyes. Soak cotton in milk. Use cold milk. Lie down, close the eyes and do massage around the eyes with cotton soaked in milk. Do this remedy 1 time in a day. When headache starts immediately drinks warm water. It helps in reducing headache. Do not over use mobile phones and computer. Put brightness of your cell phone less. Blink your eyes for a minute. It helps in reducing eye strain. When you are using computer or mobile phones you should blink your eyes.