IF GOD HEARS YOUR PRAYER

And this is the confidence (the assurance, the privilege of boldness) which we have in Him: [we are sure] that if we ask anything (make any request) according to His will (in agreement with His own plan), He listens to and hears us. 15 And if (since) we [positively] know that He listens to us in whatever we ask, we also know [with settled and absolute knowledge] that we have [granted us as our present possessions] the requests made of Him.
1 John 5:14-15 AMP

The Bible tells us that if God hears our prayers that He also answers them. How can you have confidence that He will hear your prayers and therefore answer them?

For we do not have a High Priest Who is unable to understand and sympathize and have a shared feeling with our weaknesses and infirmities and liability to the assaults of temptation, but one Who has been tempted in every respect as we are, yet without sinning. 16 Let us then fearlessly and confidently and boldly draw near to the throne of grace (the throne of God’s unmerited favor to us sinners), that we may receive mercy [for our failures] and find grace to help in good time for every need [appropriate help and well-timed help, coming just when we need it].  Hebrews 4:15-16 AMP

Only the righteous can come into God’s presence to ask for help and be heard. If you are washed in the blood of Jesus and if He is your High Priest, you can have confidence to come into God’s presence to ask boldly for what you need. The guilty are not bold to come into God’s presence, but God expects the righteous to be bold! Boldness is a manifestation of faith —faith in God’s grace and His promises—and God always honors faith.

You are jealous and covet [what others have] and your desires go unfulfilled; [so] you become murderers. [To hate is to murder as far as your hearts are concerned.] You burn with envy and anger and are not able to obtain [the gratification, the contentment, and the happiness that you seek], so you fight and war. You do not have, because you do not ask. 3[Or] you do ask [God for them] and yet fail to receive, because you ask with wrong purpose and evil, selfish motives. Your intention is [when you get what you desire] to spend it in sensual pleasures.  James 4:2-3 AMP

If you want an answer, you need to first ask. If you don’t ask God for what you need, how can He give it to you? Also, if you ask with wrong purpose and evil, selfish motives, with the intention of satisfying your carnal desires, then God will not answer you then either.

If I regard iniquity in my heart, the Lord will not hear me.  Psalms 66:18 AMP

Behold, the Lord’s hand is not shortened at all, that it cannot save, nor His ear dull with deafness, that it cannot hear. 2 But your iniquities have made a separation between you and your God, and your sins have hidden His face from you, so that He will not hear.  Isaiah 59:1-2 AMP

God is not powerless or unwilling to help you, neither is He deaf so that He cannot hear, but if you are disobedient and if you sin willfully, then He will not hear your prayers, because your sin has separated you from Him and His presence.

What man is he who desires life and longs for many days, that he may see good? 13 Keep your tongue from evil and your lips from speaking deceit. 14 Depart from evil and do good; seek, inquire for, and crave peace and pursue (go after) it! 15 The eyes of the Lord are toward the [uncompromisingly] righteous and His ears are open to their cry. 16 The face of the Lord is against those who do evil, to cut off the remembrance of them from the earth. 17 When the righteous cry for help, the Lord hears, and delivers them out of all their distress and troubles. 18 The Lord is close to those who are of a broken heart and saves such as are crushed with sorrow for sin and are humbly and thoroughly penitent.  Psalms 34:12-18 AMP

The face of the Lord is against those who do evil, but the eyes of the Lord see the uncompromisingly righteous and His ears are open to their cry. The righteous are those who have humbly received the grace of God and who know that they are made righteous only by the grace and mercy of God. They work daily to keep their heart right with God. When the righteous cry for help, the Lord pays attention to them, and delivers them out of all their distress and troubles.

The Lord is [rigidly] righteous in all His ways and gracious and merciful in all His works. 18 The Lord is near to all who call upon Him, to all who call upon Him sincerely and in truth. 19 He will fulfill the desires of those who reverently and worshipfully fear Him; He also will hear their cry and will save them.  Psalm.s 145:17-19 AMP

When you reverently and worshipfully fear the Lord and when you call upon Him sincerely and in truth, He will hear your cry and will save you and fulfill not only your needs, but also your desires.