Hebrews 9:14 (ESV): "how much more will the blood of Christ, who through the eternal Spirit offered himself without blemish to God, purify our conscience from dead works to serve the living God."
Romans 6:13 (ESV): "Do not present your members to sin as instruments for unrighteousness, but present yourselves to God as those who have been brought from death to life, and your members to God as instruments for righteousness."
1 Peter 4:1 (ESV): "Since therefore Christ suffered in the flesh, arm yourselves with the same way of thinking, for whoever has suffered in the flesh has ceased from sin, so as to live for the rest of the time in the flesh no longer for human passions but for the will of God."
We are commanded to be filled with the Spirit in Eph. 5:18. If we lose the filling of the Spirit (by our own actions, i.e sin) there is a way to regain the filling of the Spirit. This is found in 1 John 1:9. There needs to be an understanding between union with Christ, and, communion with Christ. Our union with Christ is eternal, this is our salvation. One communion with Christ is the daily walking by means of the Spirit (cf. Gal. 5:25). If we walk in the light as Christ is in the light, we have fellowship, not only with other believers, but, with Christ Himself (cf. 1 John 1:7). We are to walk in Christ as He is the light (cf. John 8:12). If we sin-and we do-, this does not mean we have lost our salvation (union), this means we have lost our communion (fellowship) with Christ, and, are no longer filled with the Spirit, this unable to perform "good works." Our union then, is not based on our deeds/works-for there are none righteous (cf. Rom. 3:10)-but, our daily "yielding to the Spirit" for the "service of God." It is only through the motivation of the Spirit, and, our yielding to Him, could we ever perform "good works." So, what are "works" then? They are things we do through the motivation and guidance of the Holy Spirit for the service of God.