What a great question! There is probably no clear answer, however. I will put my 2 cents in and hope it is helpful. There are various considerations to think about. Regarding unanswered prayer James (Yaacov) had this to say:
2 You lust, and have not: you kill, and desire to have, and cannot obtain: you fight and war, yet you have not, because you ask not.
3You ask, and receive not, because you ask amiss, that you may consume it on your lusts. (James 4:2 & 3)
The motives of the heart are primary. Do you want to know the God of Truth, or a god of your desires? There are many gods of our imaginations, but only one I AM. Accepting Him for He who actually is, and not what we want Him to be is the beginning. Which is why Proverbs tells us that the fear of Yahweh is the beginning of wisdom (Prov. 1:7).
James also tells us;
6But let him ask in faith, nothing wavering. For he that wavers is like a wave of the sea driven with the wind and tossed. (James 1:6).
If you doubt His existence, you will not get an answer. It seems like a contradiction, but we can believe He exists and doubt His existence at the same time. If you think in your heart that He does not exist, but are giving mental assent, that doubt in your heart will block an answer.
He tells us in Deuteronomy:
29But if from there you shall seek the LORD your God, you shall find him, if you seek him with all your heart and with all your soul. (Deut. 4:29).
But our hearts are complex entities. I met Jesus and he came into my heart when I was 32. I believed God existed as a child. When I was five I had a Catholic friend who told me that Jesus was God. In my young mind I found it absurd to think a man could become God, so I rejected the identification of God with Jesus. As a 10 year old, my atheist father told me there was no God. In my mind I heard, Yes there is. In hindsight I realize that the Holy Spirit was speaking to me at that time. But I took it as my own thought and held fast to the conviction of His existence.
At the age of 19 I thought it was about time I read the book that so many people had believed in for thousands of years: the Bible. I read it from cover to cover, excluding Psalms because I thought that was merely poetry. How wrong I was I realized much later. But while reading the Bible two verses jumped out at me, which I later learned were called
Rhemas (Greek for the spoken word, and used to describe the experience of hearing God through the Scriptures). The first was in the Beatitudes; Blessed are the pure in heart for they shall see God. The second was in the Parable of the sower and the seed; the good soil produced fruit a hundredfold.
At that same time I read Carlos Castenada's books (which I was told a decade later were frauds) on the Yaqi Indian, Don Juan. Because of those books I kept dream journals and desired to become conscious of being in the dream, which I did. These experiences convinced me of the reality of angels, which is too long a story to tell here.
Finally, when I was 32, a messianic Jew led me to Christ. Two questions he asked me were turning points to my believing in the deity of Jesus Christ. First was the question, Did I think all things were possible with God? I agreed. Then he pointed out, Then God could become a man. It never occurred to me that God became the man Jesus Christ, whereas my childhood conception was of a man becoming God as absurd. The second was, Did I believe in the devil? I said no. He thought it very convenient then for the devil. I asked him what he meant. He pointed out that if you were a thief and a murderer, would you want people to know you existed? That made sense. I already was convinced that angels existed (later, after my new birth I was able to talk to my guardian angel, but that is off topic). If angels existed and we were told by the Bible that devils were fallen angels, then I had an enemy who wanted me dead. At that moment I realized I needed a Saviour and cried out to Jesus for my salvation.
I offer you my testimony as an example of the complexity of the heart. There were certain misconceptions I believed that had to be corrected. I don't know your heart, but I am assuming you are sincere in your question.
I hope you find the answer to your prayers.