The Bible says that “God commendeth [or proved] his love toward us, in that, while we were yet sinners, Christ died for us” (Romans 5:8). This means that, with His sinless life, Christ passed the test of the law of God (Galatians 4:4, 5) and paid the price for your sins by dying on the cross and rising again to defeat death forever (I Peter 2:24). By doing this, Christ bought your pardon saving you from the judgment of God (Colossians 1:14).
Now, you only need to acknowledge what He did to buy your pardon, admit you broke God’s law and need Christ’s pardon, repent of your sinful life (Luke 13:3), and simply ask Christ for His pardon to save you from God’s judgment after death (Romans 10:9, 10, 13).