God is good, righteous, and sovereign, revealing Himself to all people so that no one is without excuse or can plead ignorance, even those who have never heard of Christ. Everyone is born with a sin nature and is eternally separated from God, making faith in Him the only path to salvation. God has always provided the way for people to be saved through faith in what He reveals. Those in the Old Testament trusted God’s promises and were saved, even without knowing the name of Christ. Today, salvation comes through faith in Jesus, yet God’s call reaches everyone, using missionaries, Scripture, dreams, and other means to draw hearts to Himself. Our eternal destiny is determined by how each person responds to God’s revelation, with those responding in faith spending eternity in heaven and those rejecting God spending eternity in hell. The deeper question is not what happens to those who have never heard but how you respond to the knowledge of Jesus you have.
The question is often asked, "If faith in Jesus is the only way to have eternal life with God, what about all of the people who have never heard of Jesus?" Sometimes this question is asked by people who only want to throw up a smoke-screen and who really don't care about the answer. Such a person needs to understand that on the day of judgment, the issue will not be about the heathen in general, but each person in particular (including the questioner). He will be held accountable for his own personal knowledge of Jesus and what he did with that knowledge.
Others, however, genuinely struggle with the issue, so an answer is important to give.
It does not matter WHERE a person was born or WHEN a person was born, the truth remains the same. God is a just, fair, and righteous God. Everyone who has ever been born instinctively knows about God, but each person is also born with a sin nature that rebels against God. Access to more or less information is not the crux of the problem. The primary issue is the spiritual deadness of everyone born into the world.
Yet, God made the way for salvation: Jesus came and died in our place, and all who trust in His death and resurrection are forgiven and saved for eternity. Faith in God and His promises has always been the basis of salvation. Theologian Charles Ryrie sums it up this way: "The basis of salvation in every age is the death of Christ; the requirement for salvation in every age is faith; the object of faith in every age is God; the content of faith changes in the various dispensations [ages or times]." Though in the Old Testament, people did not know Jesus, they still trusted in the promised Messiah who would redeem. Those who had faith in God were saved. Even today, those who respond in faith to what God has revealed will be saved, and He reveals Himself to all.
The question of what happens to those who have never heard of Christ is an interesting one to explore, but the more important question is, what will you do with the information about Jesus that you have? As C. S. Lewis said, "If you are worried about the people outside [of faith in Christ], the most unreasonable thing you can do is to remain outside yourself."