Admit you are sinner who deserves God’s judgment
Understand that Christ died for you and rose from the dead
Even though we are sinful and headed for hell, God sent his son Jesus, who was fully God and fully man, to die on a cross to take the penalty for our sin. Furthermore, He rose from the dead three days later to demonstrate that God accepted his payment for sin (I Peter 3:18; and I Corinthians 15:5).
Repent of your sin and believe that Christ died/rose from the dead for you
Understanding intellectually that Christ died and rose from the dead is not enough to save an individual. Even the demons believe intellectually that Jesus is the Son of God, but they are not going to heaven (James 2:14-25). To be saved, you must, by an act of your will, and with sincerity of heart, turn from your sin, repentance, (Acts 26:20) and believe that Christ died on the cross in your place and rose from the dead (Romans 10:9-10). When you do this, you are depending on Christ and not your good works to get you into heaven (Titus 3:4-5).
Salvation is not something you can earn or deserve; it is by grace, Gods underserved favor.