Hey Niharika,
Most, but not all head aches are muscular tension. Try a warm compress to the neck and shoulders and then stretch. Of the many types of head aches, there are cluster , migraine (predominently, these are suffered more by women than men) and muscular tension. Others can be caused by simple things such as eye strain. If a head ache persists, you should consider seeking professional medical help. There could be underlying organic causes and contributing factors such as various disease processes that may need addressing.