Some thoughts on law and our Christian walk, sanctification and holiness.
"Wherefore the law was our schoolmaster to bring us unto Christ, that we might be justified by faith. But after that faith is come, we are no longer under a schoolmaster." (Gal 3:24-25, KJV)
Paul speaks of "the law" so he is speaking from a Jewish perspective, being a Jew. Gentiles were not under "the law", Rom. 2:14, 15.
"The earlier rules are repealed as ineffective and useless, since the law brought nothing to perfection; and a better hope is introduced, through which we draw near to God." (Heb 7:18-19, REB)
"It follows that there is now no condemnation for those who are united with Christ Jesus. In Christ Jesus the life-giving law of the Spirit has set you free from the law of sin and death. What the law could not do, because human weakness robbed it of all potency, God has done: by sending his own Son in the likeness of our sinful nature and to deal with sin, he has passed judgement against sin within that very nature, so that the commandment of the law may find fulfilment in us, whose conduct is no longer controlled by the old nature, but by the Spirit." (Rom 8:1-4, REB)
The law sanctified no one nor brought him to perfection, and to my memory, nowhere is that stated to be the case in Scripture. We are sanctified or made holy by the word of God made powerful to us by the indwelling of the Holy Spirit.
"Sanctify them through thy truth: thy word is truth." (John 17:17, KJV)
"That he might sanctify and cleanse it with the washing of water by the word, That he might present it to himself a glorious church, not having spot, or wrinkle, or any such thing; but that it should be holy and without blemish." (Eph 5:26-27, KJV)
"May the God of peace himself sanctify you entirely; and may your spirit and soul and body be kept sound and blameless at the coming of our Lord Jesus Christ. The one who calls you is faithful, and he will do this." (1Thess 5:23-24, NRSV)