You can't be saved by good works, Bible knowledge, morality or religion. You can't earn your way to heaven.
Salvation is a free gift.
All have sinned. For all have sinned and fallen short of the glory of God. If we claim to be without sin, we deceive ourselves and the truth is not in us. We are lost and separated from God. Whoever believes in him is not condemned, but whoever does not believe stands condemned already because he has not believed in the name of God's one and only son.