Well clearly the first verse is about a mother whos inflicted with these headaches, probably from some life threatening sickness that causes her to eventually die in the end; Throughout her sickness however she prays to God, thanking him for elongating her life.
In the second verse, it describes a son- the son of this mother who has died. He curses God for taking her life; even though they must have spent countless hours praying for the life of this woman. Their prayers seem to have gone unnoticed. But the son realizes his prayers have not been disregarded, instead he realizes God answered his prayers and ended his mothers pain by taking her under His wing.
You might think that praying does nothing and that its pointless. But this song shows an optimistic view regarding God, and shows that even though you think your prayers go unnoticed they are in fact being answered in ways you may not understand, comprehend or even notice.