The disciples asked the Lord to teach them to pray. These men knew that prayer was important to everything else in their relationship with God. They wanted to have a prayer life like the one they saw in Jesus.
Everything in our personal walk with God hinges on our ability to pray prayers that are heard and answered.
James 4:7-8 Submit yourselves therefore to God. Resist the devil, and he will flee from you. Draw nigh to God, and he will draw nigh to you. Cleanse your hands, ye sinners; and purify your hearts, ye double minded.
One of the things the Spirit of God will do in our lives is make us more submissive to the Father. First, no one can come to God with open sin in his life. If sin is in your life, confess it.
Prayer is not about getting what we want from God. Prayer is about God working in us to line our will up with His.
When we get to the place where we want nothing but what God wants—when His will becomes our will— when we are willing to surrender all of our plans, goals, wants and wishes, then we are ready to see God move in answer to our prayers.