Do not merely listen to the word, and so deceive yourselves. Do what it says. Anyone who listens to the word but does not do what it says is like someone who looks at his face in a mirror, and after looking at himself, goes away and immediately forgets what he looks like.-James 1:22-24
James is not saying here that you are saved by your works. He is saying that your works will reflect what has happened in your heart. The person who has truly give their heart and life to Christ will live a life that reflects this. But remember this you can’t earn your way heaven, it is only through putting your faith in Christ that you are able to attain salvation. And remember that life you live should reflect where you have put your faith and trust.