the word “works” each used do not mean the same thing, just doesn’t get it for me.
There are indeed several types of works found in the bible and they can be described in two ways;
1) Works performed according to the law for the covering of sin and
2) Faith based works.
In order to understand why there is no contradiction in Gods word requires one to rightly divide it. In the OT Moses gave the people specific laws of actions they were to perform to cover their sins aka works of the law and the Jews used these actions to justify themselves before God.
Faith based actions / works are a different animal. If you have faith in God and perform an act / work based on that faith it is a justification that you do have that faith. We get an idea of this animal from this verse;
2 Corinthians 9:7 Each one must give as he has decided in his heart, not reluctantly or under compulsion, for God loves a cheerful giver.
In the NT Christ states that the second greatest commandment is to love your neighbor as yourself so if you see a poor person and you perform the action / works of helping them are you doing it solely because God commanded you to do it? or are you doing it because you really love God and want to be like him?
If you do this action / work simply to comply with the command so that you can justify yourself before God to gain eternal life then you in fact are not trying to be like God and you will be told "I never knew you".
Now on the other hand there are those who say they have faith. If you say you have faith and yet never produce the fruit / works that would justify that assertion then in fact you do not have faith so, faith and faith based works are the example that Christ showed to us all.
A good man from the goodness of his heart will do good deeds not because he was told to do it and he will be justified before God that he has faith, not as an exchange for God's promise of eternal life.