The ten commandments are part of the Law of Moses and the Old Covenant made with Israel at Sinai. Jesus Christ fulfilled the Law of Moses and took it out of the way.
Colossians 2:14 Blotting out the handwriting of ordinances that was against us, which was contrary to us, and took it out of the way, nailing it to his cross;
Romans 6:14 For sin shall not have dominion over you: for ye are not under the law, but under grace. 15 What then? shall we sin, because we are not under the law, but under grace? God forbid.
Israel failed to keep the Old Covenant and God promised a new one.
Jeremiah 31:31 Behold, the days come, saith the LORD, that I will make a new covenant with the house of Israel, and with the house of Judah: 32 Not according to the covenant that I made with their fathers in the day that I took them by the hand to bring them out of the land of Egypt; which my covenant they brake, although I was an husband unto them, saith the LORD: 33 But this shall be the covenant that I will make with the house of Israel; After those days, saith the LORD, I will put my law in their inward parts, and write it in their hearts; and will be their God, and they shall be my people. 34 And they shall teach no more every man his neighbour, and every man his brother, saying, Know the LORD: for they shall all know me, from the least of them unto the greatest of them, saith the LORD: for I will forgive their iniquity, and I will remember their sin no more.
Hebrews 8:8 For finding fault with them, he saith, Behold, the days come, saith the Lord, when I will make a new covenant with the house of Israel and with the house of Judah:
Hebrews 8:13 In that he saith, A new covenant, he hath made the first old. Now that which decayeth and waxeth old is ready to vanish away.
Jesus Christ is the mediator of the New Covenant.
Hebrews 8:6 NKJV But now He has obtained a more excellent ministry, inasmuch as He is also Mediator of a better covenant, which was established on better promises.
Hebrews 9:15 NKJV And for this reason He is the Mediator of the new covenant, by means of death, for the redemption of the transgressions under the first covenant, that those who are called may receive the promise of the eternal inheritance.
Hebrews 12:24 NKJV to Jesus the Mediator of the new covenant, and to the blood of sprinkling that speaks better things than that of Abel.
Those who believe the gospel and are baptised into Christ enter into a New Covenant. Under the New Covenant we are commanded to obey the commandments of Christ, not the Law of Moses.
John 15:13 Greater love hath no man than this, that a man lay down his life for his friends. 14 Ye are my friends, if ye do whatsoever I command you.
Luke 6:46 And why call ye me, Lord, Lord, and do not the things which I say?
The commandments of Jesus Christ reinforce nine of the ten commandments which are to do with morality. The fourth commandment (Sabbath keeping) is a ceremonial or carnal commandment and not part of the New Covenant.
Hebrews 9:10 Which stood only in meats and drinks, and divers washings, and carnal ordinances, imposed on them until the time of reformation.
Those in Christ are not commanded to keep the Sabbath (or the other Mosaic feast days).
Colossians 2:16 Let no man therefore judge you in meat, or in drink, or in respect of an holyday, or of the new moon, or of the sabbath days: 17 Which are a shadow of things to come; but the substance is of Christ.
I hope you find this helpful.