The Bible teaches that only certain people will go to Heaven

"the wages of sin is death, but the free gift of God is eternal life in Christ Jesus our Lord." That is why Jesus died on the cross. Jesus died on the cross for everyone sins, not just Christians. If Jesus didn't die on the cross, the gates of heaven would still be closed to everyone. He chose to die on the cross in an act of mercy and love which is why it is a free gift. "and He Himself is the propitiation for our sins; and not for ours only, but also for those of the whole world." 1 John 2:2 This verse shows that he died for the sins of the whole world not just those who believe in him. "By this we know that we have come to know Him, if we keep His commandments. The one who says, "I have come to know Him," and does not keep His commandments, is a liar, and the truth is not in him;" 1 John 2:3-4 This can be interpreted as if you believe in god(Know him) then you would follow the commandments. If you claim that you believe in him(know him) but don't follow the commandments then you are a liar. Logically you can also do the reverse of this, if you follow the commandments then you (know him). Latter in 1 John 2, he uses the reverse in what he called a new commandment. "Beloved, I am not writing a new commandment to you, but an old commandment which you have had from the beginning; the old commandment is the word which you have heard. On the other hand, I am writing a new commandment to you, which is true in Him and in you, because the darkness is passing away and the true Light is already shining. The one who says he is in the Light and yet hates his brother is in the darkness until now. The one who loves his brother abides in the Light and there is no cause for stumbling in him. But the one who hates his brother is in the darkness and walks in the darkness, and does not know where he is going because the darkness has blinded his eyes." 1 John 2:7-11. Note that anyone who loves his brother abides in the Light. It does not say that someone needs to be christian or jewish to be in the light, it merely says that they need to love their brother to be in the light. "For God so loved the world, that he gave his only Son, that whoever believes in him should not perish but have eternal life." I do not disagree with this, but what is defined as believes in him does not require one to hear about him. If one never hears of the word of Jesus but still follows his rules, they in their heart believe in him. But one who claims to follow Jesus but does not follow his rules does not believe in him. "For it is not those who hear the law who are just in the sight of God; it is those who keep it who will be declared just. When Gentiles who do not have the law keep it as by instinct, these men although without the law serve as a law for themselves. It shows that the demands of the law are written in their hearts. Their conscience bears witness together with that law, their thoughts will accuse or defend them on the day when, in accordance with the gospel I preach, God will pass judgement on the secrets of men through Jesus Christ. " Romans 2: 13-16 New American Standard Bible 1970 This verse says directly that people who do not hear the law can still follow the law based on what is in their hearts. It also says that what matters is not that you hear it but if you keep it. This verse directly points out that those who have not heard the law of god can still get to heaven(just in the sight of God).