Jesus famously teaches about prayer at the start of Luke 11 but something bigger is going on. Those who ask a human parent receive, how much more with God! When you ask of God the gift you receive is the Holy Spirit - in Luke this is (at least initially) a request for eternal life. How do you get it? Simply, ask!
And I tell you, ask, and it will be given to you; seek, and you will find; knock, and it will be opened to you. For everyone who asks receives, and the one who seeks finds, and to the one who knocks it will be opened. What father among you, if his son asks for a fish, will instead of a fish give him a serpent; or if he asks for an egg, will give him a scorpion? If you then, who are evil, know how to give good gifts to your children, how much more will the heavenly Father give the Holy Spirit to those who ask him!”
This approach which negates performance and religion offends the Pharisees and the Lawyers want to get in on the game adding “Teacher, in saying these things you insult us also.” Christianity is the opposite of everything else - you just have to listen to Jesus when he says do you want life, and say yes.
But don't thinking asking is a ticket to heaven. That's not even the half of it. The amazing thing is that God comes to live in you! Jesus says the Holy Spirit is given by the heavenly Father to all who ask. We get deified, caught up into the family life of the Triune God. Just as Jesus can pray (Luke 10) to the Father, with joy in the Spirit - so can the Christian, and the Spirit will teach us.