In the Bible, John 14:6 says:
Jesus said to him, “I am the way, and the truth, and the life. No one comes to the Father except through me.”
There is no other way to God. Jesus is the only way. When Jesus died on a cross, He took all of your sin upon himself and defeated the evil in your life and in this world. As Isaiah 53:5 says in the Bible:
He [Jesus] was pierced for our transgressions, he was crushed for our iniquities; the punishment that brought us peace was on him, and by his wounds we are healed.
It’s through simply putting your faith (your trust) in Jesus, rather than your own righteousness or goodness or ability to live a moral life, that you are saved from the judgement to come, and saved from your own sin. No spiritual method or god or philosophy can save you except Jesus.
In the Bible, 1 John 1:9 says:
If we confess our sins, he is faithful and just to forgive us our sins and to cleanse us from all unrighteousness.