We are to stop drifting along in service to sin. In other words, we let God work in our lives, to set us apart and use us in his service. This is the doctrine of sanctification. But thanks be to God that, though you used to be slaves to sin, you wholeheartedly obeyed the form of teaching to which you were entrusted. You have been set free from sin and have become slaves to righteousness.
Christians are to do good works.
These will be God's works, the result of Jesus working with our hearts through the Spirit. However, these works are not done to earn or contribute toward our salvation. We are saved by faith, not works. These are works of faith, not works for salvation. Just as faith produces salvation, faith also produces works.