Ok back to the prayers not being heard.
Psa 66:18 If I have seen wickedness in my heart, יהוה would not hear.
Pro 1:23 “Turn at my reproof. See, I pour out my spirit on you, I make my words known to you1. Footnote: 1See Ps. 33:6.
Pro 1:24 “Because I called and you refused, I have stretched out my hand and no one inclined,
Pro 1:25 “And you spurned all my counsel, And would not yield to my reproof,
Pro 1:26 “Let me also laugh at your calamity, Mock when your dread comes,
Pro 1:27 “When your dread comes like a storm, And your calamity comes like a whirlwind, When distress and anguish come upon you.
Pro 1:28 “Let them then call on me, but I answer not; Let them seek me, but not find me.
Pro 1:29 “Because they hated knowledge And did not choose the fear of יהוה,
Pro 1:30 “They did not accept my counsel, They despised all my reproof,
Pro 21:13 Whoever shuts his ears to the cry of the poor, Let him also cry and not be heard.
Pro 28:9 He who turns away his ear from hearing the Torah, Even his prayer is an abomination1. Footnote: 1See also 15:29, Isa. 59:1-2, John 9:31, 1 John 3:22.
Isa 59:1 Look, the hand of יהוה has not become too short to save, nor His ear too heavy to hear.
Isa 59:2 But your crookednesses have separated you from your Elohim. And your sins have hidden His face from you, from hearing.
Zec 7:12 “And they made their hearts like flint against hearing the Torah, and the words, which יהוה of hosts had sent by His Spirit through the former prophets. Therefore great wrath came from יהוה of hosts.
Zec 7:13 “And it came to be: as He called and they did not hear, so let them call, but I shall not hear,” said יהוה of hosts.
Joh 9:31 “And we know that Elohim does not hear sinners. But if anyone fears Elohim and does His desire, He hears him.
Jas 1:6 But he should ask in belief, not doubting, for he who doubts is like a wave of the sea driven and tossed by the wind.
Jas 1:7 For that man should not think that he shall receive whatever from the Master –
Jas 4:3 You ask and do not receive, because you ask evilly, in order to spend it on your pleasures.
Jas 4:4 Adulterers and adulteresses! Do you not know that friendship with the world is enmity with Elohim?1 Whoever therefore intends to be a friend of the world makes himself an enemy of Elohim. Footnote: 1Mt. 13:22, Lk. 4:5-6, Lk. 14:33, Rom. 12:2, 1 John 2:15-17.
Jas 4:5 Or do you think that the Scripture speaks to no purpose? Does the Spirit which dwells in us intensely crave unto envy?
1Pe 3:7 In the same way, husbands, live understandingly together, giving respect to the wife, as to the weaker vessel, and as being heirs together of the favour of life, so that your prayers are not hindered.
Ok, let's break this all down. First of all if we regard iniquity in our hearts,wickedness or vanity.
So then what is sin or iniquity or wickedness? if we look at Num 15:31 Because he hath despised the word of the LORD, and hath broken his commandment, that soul shall utterly be cut off; his iniquity shall be upon him. Iniquity has to do with despising the commands and instructions of Yahweh .Elohim. also we can find a definition of sin as being lawlessness or Torahlessness. This is in I John 1Jn 2:1 My little children, I write this to you, so that you do not sin. And if anyone sins, we have an Intercessor with the Father, יהושע Messiah, a righteous One.
1Jn 2:2 And He Himself is an atoning offering for our sins, and not for ours only but also for all the world.
1Jn 2:3 And by this we know that we know Him, if we guard His commands.1 Footnote: 1See 3:6.
1Jn 2:4 The one who says, “I know Him,” and does not guard His commands, is a liar, and the truth is not in him.
1Jn 2:5 But whoever guards His Word, truly the love of Elohim has been perfected1 in him. By this we know that we are in Him.2 Footnotes: 1Gen. 17:1, Ps. 119:1, Mt. 5:48. 2See 3:24.
1Jn 2:6 The one who says he stays in Him ought himself also to walk, even as He walked.
1Jn 2:7 Beloved, I write no fresh command to you, but an old command which you have had from the beginning. The old command is the Word which you heard from the beginning.1 Footnote: 1See v. 24.
So, we know this from John. If we are not keeping the commands or instructions of Yahweh Elohim we do not love Him. We are then living in sin, for sin is lawlessness. If you are telling others that you love Elohim but are eating pork, worshiping on Sunday, not observing the instructions found in the first 5 books of the Bible, I am sorry but your prayers are an abomination to the very one you say you love. Proverbs 28 makes this crystal clear. To hear in the Hebrew mind in which this was writtin carries with it the shema that of hearing and doing. Folks, there is a line being drawn in the sand. Judgement is coming very soon as the Kingdom of Messiah will come.
Now, 2Ch 7:14 If my people, which are called by my name, shall humble themselves, and pray, and seek my face, and turn from their wicked ways; then will I hear from heaven, and will forgive their sin, and will heal their land.
If we turn from not being obedient children to that of being obedient to the instructions of the Father it is only then He will hear. Also there is a time for confession of sin or lawlessness. Turning from being lawlessness to following the Father's instructions because we love Him. Not because it saves us. Salvation is only by grace through faith.
Be a Berean and study the Scriptures. See what it says for yourself without your doctrinal biases.