James 2:20–24, Faith without works is dead. James here is referring to the works of faith, not the works of the law. No man can live a good enough life to be saved by his Torah-obedience — the works of the law (Rom 3:20, 28; Gal 2:16; 3:11).
Faith, however, in Elohim is more than just mental ascent—“a knowing in your heart.” It has to be backed up by action (and we’re not talking about the works of the law). For example, when Elohim told Abraham to leave Babylon or to sacrifice Isaac, he obeyed. Many were healed in Yeshua’s ministry because they had faith in the Master and backed that faith up with corresponding action, which was the evidence of their faith.
This faith-action continuum had nothing to do with Torah-obedience, but had everything to do with “putting your money where your mouth is” so to speak. This is what James is talking about here, and this in no wise contradicts the teachings of Paul who said that no man is justified by the works of the law.
When Paul declares in Ephesians 2:8–9, “For by grace you are saved through faith, and that not of yourselves; it is the gift of Elohim, not of works…,” he was correct and not opposed to James. What’s more, Paul goes on to say in verse 10, “For we are [Elohim’s] workmanship, created in Messiah Yeshua for good works…that we should walk in them.”
These good works (i.e., obedience to the Torah) are the fruits, evidence or proof of our salvation—the works that back up our faith. So, in summary, the Bible teaches that we need the works of faith to lead us to salvation, as well as the works of faith after we have received Elohim’s free gift of salvation as evidence that we are saved. This fact in no way contravenes the reality of salvation by grace through trusting belief in Yeshua the Messiah, which is apart from the works of the Torah-law.