If someone asks where in the Bible talks about how to go to heaven, the best verses to read and study are in John 3. In this passage, Nicodemus, a Pharisee or an expert of the law, asks Jesus because He was a popular and admired teacher.
Jesus gave a simple yet deep statement as to how a person can go to heaven. He says that it is only by being born again. To be born again is not a physical matter, just like what Nicodemus thought, but a spiritual thing. As to how does a man become born again, the answer lies at around the middle of the chapter.
John 3:16 says For God so loved the world that He gave His only begotten Son, that whosoever believed in Him shall not perish but have everlasting life. Considering this clear statement, the way to be born again, and thus see the kingdom of God, or heaven, is to believe in Jesus Christ.