God answers all prayer. He may answer with a yes, no , maybe, later, etc. He always has a reason for doing what He does and not doing what He doesn’t do and His reason is always right. How can someone think they know what is best when God is God and He knows all that has happened and all that will happen. If we are walking close enough to God and listening, we may know specifically what the answer is and may even know why. If we don’t get specific answers, it is still our job to continue to know and believe that God is God and He is making the right decisions.
It may be our fault that we get the answers we get or someone else’s fault that we get the answer we get. The only one we are accountable for is us. We can’t determine what part others play in the situation and we can’t determine what decisions they make. We can walk close enough to God to know what we are to be doing to get a right answer. God will ask us to do certain things. If we are telling Him, “no”, why would He feel obligated to tell us, “yes”? If we disobey, then we are in sin and sin will separate us from God. It is our job to get rid of the sin with a prayer of repentance so that we are no longer separated from God and He can hear our prayer. God may be asking us to do something out of our comfort zone in order to show us what can actually be accomplished if we walk in obedience. God may be asking us to do a simple, beneficial thing like to just walk a little closer to Him. If we aren’t walking with God and we are still asking Him to move in your life, then He is probably asking us to walk with Him and allow Him to guide our steps. If we won’t do what He asks, He is not obligated to do anything on our behalf.
And, Yes, sometimes he does do things on our behalf even when we aren’t being obedient because He loves us even when we aren’t loving Him back.