Here is what God's Word says about receiving eternal life.
"Jesus answered, "I am the way and the truth and the life. No one comes to the Father except through me." (John 14:6)
God's Word tells us that because of the sin of Adam, we are all guilty. We are all sinners in need of a savior. God knew man would sin and he completed a plan before He created the world. Sin was not a surprise to God. It was an outgrowth of man's free will choice. God gave man a free will so He could have true fellowship with him. He didn't create robots in forced obedience. He wanted man to chose to obey out of love for Him.
Adam's disobedience caused man to be taken prisoner by Satan. When Adam chose to believe Satan's Word instead of God's Word, he placed himself under Satan's authority. God had given man authority over the earth. Therefore, Satan now had control of it. God is completely just. Legally God could not use His power to give it back to man.
Because man introduced sin into the world, man would have to get rid of it. So, God, Himself, took the form of a man by being born of a woman. His lineage goes all the way back to Adam. He was a legal representative of man. In contrast to Adam, He came to live a sinless life, reveal the Word of God, the character of God, and the power of God. Finally, He voluntarily took the entire sin debt of the world upon himself. Then He gave His life to pay the ransom and redeem man from his captivity.