We can't be saved by good works. We need to accept Jesus as our Lord and Savior.
(John 3:14-18 NIV) Just as Moses lifted up the snake in the desert, so the Son of Man must be lifted up, {15} that everyone who believes in him may have eternal life. {16} "For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life. {17} For God did not send his Son into the world to condemn the world, but to save the world through him. {18} Whoever believes in him is not condemned, but whoever does not believe stands condemned already because he has not believed in the name of God's one and only Son.