Read the account of the Last Judgment in Matthew. People who did good works go to Heaven. People who failed to do good works go to Hell.
Ephesians 2:8 For it is by grace you have been saved, through faith--and this not from yourselves, it is the gift of God-- 9 not by works, so that no one can boast.