Heaven is not based on the merits of man but on the mercy of God. In other words, eternal life will not be earned with "good works" because your redemption was purchased by the work of Jesus Christ on the cross. Therefore, salvation is to be received as a gift by believing in Jesus Christ and receiving Him as your Savior. The Bible verse below, Romans 6:23, is divided into 3 parts to help you understand your need of salvation.
“For the wages of sin is death;
but the gift of God is eternal life
through Jesus Christ our Lord.”
THE WAGES OF SIN IS DEATH
You were born in Adam's likeness, spiritually dead and inherently a sinner. Romans 5:12, "Wherefore, as by one man (Adam) sin entered into the world, and death by sin; and so death passed upon all men, for that all have sinned." Man, like Adam is a sinner consequently he will die like Adam. According to Romans 6:23 death is eternal separation from God and it is the payment for sin however, Christ gave Himself to die as a ransom to set us free from sin and death. Romans 5:8, "But God commendeth his love toward us, in that, while we were yet sinners, Christ died for us."
The Gift of God is Eternal Life
Ephesians 2:8-9, "For by grace are ye saved through faith; and that not of yourselves: it is the gift of God: Not of works, lest any man should boast." Eternal life will not be merited by good works or moral conduct. Man will not be justified by his own goodness but by the grace of God through faith in Jesus Christ. Your eternal salvation was purchased by the redemptive work of Christ on the cross. Therefore you must receive it as a gift by believing on Him. John 1:12, "But as many as received him, to them gave he power to become the sons of God, even to them that believe on his name."
Through Jesus Christ our Lord
1John 5:11-13, "And this is the record, that God hath given to us eternal life, and this life is in his Son. He that hath the Son hath life; and he that hath not the Son of God hath not life. These things have I written unto you that believe on the name of the Son of God; that ye may know that ye have eternal life, and that ye may believe on the name of the Son of God." The substitutionary death of Christ satisfied the justice of God. Romans 10:9, "That if thou shalt confess with thy mouth the Lord Jesus, and shalt believe in thine heart that God hath raised him from the dead, thou shalt be saved."