What can you do when you have a headach?

i am not sure about it but i think that it is from sleepless or noisy places that pains our head.