Ps. 66:18 If I had not confessed the sin in my heart, my Lord would not have listened. But God did listen! He paid attention to my prayer.
God always hears the confession of a sincere soul. He lovingly waits for us to confess our sin. He longs for us to have pure hearts. He always forgives those who humble themselves before Him in repentance.
It is also true that the Lord does not hear us when we pray if we don't confess our sins. No matter how emotionally we pray, it's all in vain if we don't have a repentant heart. We may pray and pray, but without a repentant heart it is a waste of time and energy.
There is great joy in those who know God has heard their prayers and are forgiven. There is no greater joy on earth or heaven than forgiven sins. Not even the angels of heaven know what it is like for a soul to be forgiven for sin. Oh, what a wondrous thought; God hears our prayers and forgives us for our sins!
If it seems like God pays no attention to your prayers, you need to examine your soul and see if there might be a sin problem you have that you need to confess. Sin is not always the root cause of why we feel like our prayers are not being heard, but it often is. May our prayer always be for the Lord to examine our hearts and see if there be any wicked ways in us. May we always approach Him with pure hearts. If we do, God will pay attention to our prayers and answer them.