Beloved, if our heart does not condemn us, we have confidence toward God. 22 And whatever we ask we receive from Him, because we keep His commandments and do those things that are pleasing in His sight. 1 John 3:21
Your prayers are only answered when you have a clear conscience, and are praying in His will. God can’t enter into fellowship with an unclean vessel. You must give up all that the Word, in conjunction with your conscience condemns. Any time you do not do this you will have unanswered prayer.
One big problem is that many Christians want power without purity, and happiness without holiness. When God puts His finger on unclean and unlawful things, some people shrink from the cost, and this makes it impossible for their prayers to be answered. Psalm 139:23 states: “Search me, O God, and know my heart; try me...” Ask the Lord to search you today.