There are two issues here: that your work is recognized, and that your co-worker can't be trusted.
So the obvious ones are to label your work thoroughly (even in electronic files, embed your information (for instance go to file, then properties, and begin entering in everything you can with your name, the project, etc)
Also sell and self promote these with your manager, and where appropriate, ask your manager to review your work before you submit.
Be warned though: do not put your manager what they perceive as being in the dispute to 2 coworkers, as that never works. Just be confident and keep moving forward being a positive competent professional.
The second and main issue is that a coworker can't be trusted. They are unable to give credit, misrepresent the work they have done, and other scummy activitiy.
So do not support their work anymore, and ask them what they hope to accomplish by doing their current activities. This gives everyone a chance to save a bit of "face", but remember, this is just a soft way of notifying them that you are on to them. After this, just stop helping this person.
And get a different job away from scum.