How do we get to that point? Galatians 5:24 and 25 say –
“Those who belong to Christ Jesus have crucified the flesh with its passions and desires. Since we live by the Spirit, let us keep in step with the Spirit.” The prerequisite is belonging to Christ Jesus. You have to turn yourself over to him in order to have the possibility of walking in the Spirit. The second thing is to keep in step with the Spirit. To do that we need a connection with the Spirit, following his lead, listening to his voice, seeking to please the Spirit of God.
Galatians 2: 20 talks about that –
“I have been crucified with Christ and I no longer live, but Christ lives in me. The life I now live in the body, I live by faith in the Son of God, who loved me and gave himself for me.”
Also, Romans 6: 3-11 says:
“Don’t you know that all of us who were baptized into Christ Jesus were baptized into his death? We were therefore buried with him through baptism into death in order that, just as Christ was raised from the dead through the glory of the Father, we too may live a new life. For if we have been united with him in a death like his, we will certainly also be united with him in a resurrection like his. For we know that our old self was crucified with him so that the body ruled by sin might be done away with, that we should no longer be slaves to sin— because anyone who has died has been set free from sin.
Now if we died with Christ, we believe that we will also live with him. For we know that since Christ was raised from the dead, he cannot die again; death no longer has mastery over him. The death he died, he died to sin once for all; but the life he lives, he lives to God.
In the same way, count yourselves dead to sin but alive to God in Christ Jesus.”
Romans 8: 3-13 describes how that works –
“For what the law was powerless to do because it was weakened by the flesh, God did by sending his own Son in the likeness of sinful flesh to be a sin offering. And so he condemned sin in the flesh, in order that the righteous requirement of the law might be fully met in us, who do not live according to the flesh but according to the Spirit.
Those who live according to the flesh have their minds set on what the flesh desires; but those who live in accordance with the Spirit have their minds set on what the Spirit desires. The mind governed by the flesh is death, but the mind governed by the Spirit is life and peace. The mind governed by the flesh is hostile to God; it does not submit to God’s law, nor can it do so. Those who are in the realm of the flesh cannot please God.
You, however, are not in the realm of the flesh but are in the realm of the Spirit, if indeed the Spirit of God lives in you. And if anyone does not have the Spirit of Christ, they do not belong to Christ. But if Christ is in you, then even though your body is subject to death because of sin, the Spirit gives life because of righteousness. And if the Spirit of him who raised Jesus from the dead is living in you, he who raised Christ from the dead will also give life to your mortal bodies because of his Spirit who lives in you.
Therefore, brothers and sisters, we have an obligation—but it is not to the flesh, to live according to it. For if you live according to the flesh, you will die; but if by the Spirit you put to death the misdeeds of the body, you will live.”
The Spirit helps us to get rid of the works of the flesh.