Are we saved by faith or works?
We are saved through faith that comes with works of faith which is given to us by God through grace. (Ephesians 2:8, James 2:24)
Salvation is not earned by
works of the law(Romans 3:28), which can be defined as trying in our own efforts to live up to God's demand and standards of living through the Old Testament laws, regulations and commands. (Romans 7:13-25, 8:3, Galatians 3:10-12).
Hope this helps to clarify Ephesians 2:8 and James 2:24