Medicine for Headache?

What medicine do you take when you have a bad headache? A paracetamol? What is headache? It is an effect. There is something else that is causing it. The cause could be one of the following or something else: