If you can go to heaven by your good works then why did Jesus come and die for our salvation?

Actually, according to Born-again and Protestant belief (as it says in the Bible) you cannot get to heaven by simply doing "good works". The bible says in Ephesians 2 verses 8 and 9, "For by grace are you saved through faith; and that not of yourselves: it is the gift of God. Not of works, lest any man should boast." This is saying that you are saved simply by God's grace and through your faith in Jesus. Good works are a "fruit" of the Christian - in other words, Christians are supposed to endeavor to live good, sinless lives and do good for others. These works alone do not and cannot save on their own, because they are simply a "fruit" of a born-again Christian". According to Catholic theology, good works have no merit unless done for the love of God with the person's soul free of sin and in the state of grace. Good works are dead without faith, just as faith is dead without works. The two are not mutually exclusive; one who believes lives and does all his actions in the spirit of Christ just as one who truly does things for the love of Christ must have faith in Christ.

Christ came down on earth in order to redeem man by His death and again open the gates of heaven that had been closed since the fall of Adam and Eve. Catholics believe that to get to heaven one must believe in Christ and that means believing in His Godhead as well as His mission. Scripture, Tradition and History, Catholics insist, show that Christ's mission involved setting up an institution on earth called the Church, a hierarchy and seven sacraments to aid people in attaining salvation. Catholics also believe that salvation can be lost through sin. Since men cannot do actions that are neutral - things are either for the glory of God or they aren't - the practice of virtue in thoughts, words, and deeds is therefore vital if man hopes to stay on the good path. Catholics point to St. Matthew 25.30-46 as an excellent illustration of this. In Catholicism, having faith is vital, both the beginning and the staple of the spiritual life but faith without works is dead, as is expounded through the entire Gospels and epistles, especially that of St. James.

Answer by Glb6:

The Bible is quite clear - man cannot do any thing to merit good favour with God. Salvation is and always has been a provision of God. In this age God's provision of salvation is through the death of Jesus Christ, who died as the "lamb of God". This is the teaching of the Bible and the reason the Bible was written:

John 20:31 but these are written that you may believe that Jesus is the Christ, the Son of God, and that believing you may have life in His name.