I am having headache near the temporal area on both sides for the past few days and it is also paining when it is touched. What could be the cause?

Tension. is most likely because you have muscles in this area on both sides that might tend to tighten at the same time if you are holding tension. That would also cause some tenderness upon touch. Migraines are usually on one side only and mores serious things are much more likely in older folks. Try cool compresses on temples and neck, resting in a dark room, some mild analgesic like acetaminophen.