If you are not aware of your sin, you cannot confess your sin. If you don't confess your sin, you cannot repent from your sin. If you don't repent from your sin, you cannot receive forgiveness for your sin. And if your sin is not forgiven, it will never allow you to go to heaven, for sin will never enter in heaven.
And what makes us aware of our sin is the 10 Commandments (The Law) of God.