Of course works DO play a part. The question really is WHO gives you those "good" works that are pleasing to God?
God commands that we go and bear fruit. But God must bless us so that we will bear fruit. It's like Augustine's prayer, "Command what you will, and grant what you command." God told Adam and Eve's race to go forth, be fruitful and multiply. Yet we say children are a GIFT from God, which they are. It isn't because Adam and Eve's race ability to create children. It is because God creates the souls. God commands and yet God must grant what He's commanded.
This is an extremely important principle on the nature of God. I only wished that I thought it up. :O)