The following is from GotQuestions.org:
This is the proverbial million-dollar question because, if you ask anyone on the street what you have to do to get into heaven (assuming they believe in heaven or an afterlife), the overwhelming response will be some form of “being a good person.” Most, if not all, religions and worldly philosophies are ethically based. Whether it’s Islam, Judaism, or secular humanism, most teach getting to heaven is a matter of being a good person—following the Ten Commandments or the precepts found in the Quran or the Golden Rule. But is this what Christianity teaches? Is Christianity just one of many world religions that teach that being a good person will get us into heaven?
Read more: http://www.gotquestions.org/good-person.html