A cold is a viral infection caused disease, which could heal up without requirement of any treatment. There are basically two kinds of cold, common cold and influenza. The common cold is a very common respiratory disease caused by various viruses, while influenza is the acute respiratory infection caused by influenza virus. Common symptoms of a cold include runny nose, watery eyes, sore throat, feverish, fatigue, headache and coughing. Some people might get red eyes, eye pain and swollen eyelids. It is easy to understand why. First of all, it is very easy to get eye infected by the virus spreaded from the infected respiratory system, through coughing or sneezing or some way. Secondly, headache and the congested nasal cavity can also cause eye pain. I always massage my head as well as my eyes when I got a cold to alleviate the pain and it works. You can also get some pain medication over-the-counter to help control the pain, either from head or eyes.
From your description, you got cold. So, the headache and eye pain shall caused by the cold. You know, headache is the common symptom of cold. If you also have a high fever because of cold, your eyes may also feel hurt or burning. But, don't worry, As long as you cure the cold, you can get rid of headaches and hurt eyes. So, just take some cold medicine. If it doesn't work, you'd better visit an doctor.
It is normal for you to have the headache when you get the cold because of the weak immune system. The interlinked nerves will also cause your eyes hurt which you need to pay attention to. You should use the eye drops to release your eyes and make your eyes get moisture. In addition, you should also use the warm compress to make your eyes feel comfortable.