The basic (mainstream) idea is that all sins must be "paid for", or else you go to hell. Jesus's death was the "payment" to atone for everyone's sins, giving them the chance to go to heaven instead.
But you have to accept the payment by accepting Jesus.