Why do we complain of not being heard?
According to the Catechism of the Catholic Church, "we ought to be astonished by this fact: when we praise God or give him thanks for his benefits in general, we are not particularly concerned whether or not our prayer is acceptable to him. On the other hand, we demand to see the results of our petitions. What is the image of God that motivates our prayer: an instrument to be used? or the Father of our Lord Jesus Christ? Are we convinced that 'we do not know how to pray as we ought'? Are we asking God for 'what is good for us'? Our Father knows what we need before we ask him, but he awaits our petition because the dignity of his children lies in their freedom. We must pray, then, with his Spirit of freedom, to be able to truly to know what he wants. 'You ask and do not receive, because you ask wrongly, to spend it on your passions.' If we ask with a divided heart, we are 'adulterers'; God cannot answer us, for he desires our well-being, our life. 'Or do you suppose that it is in vain that the scripture says, "He yearns jealously over the spirit which he has made to dwell in us?"' That our God is 'jealous' for us is the sign of how true his love is. If we enter into the desire of his Spirit, we shall be heard. 'Do not be troubled if you do not immediately receive from God what you ask him; for he desire to do something even greater for you, while you cling to him in prayer. God wills that our desire should be exercised in prayer, that we may be able to receive what he is prepared to give.'"
Catechism of the Catholic Church