Sometimes you can use either, but not always.
'each' refers to individual things in turn.
'Every' refers to all the things together.
I say 'bye' to each of my colleagues.
I say 'bye' to every colleague at the same time.
If we have two things, we have to use 'each'.
If we have three or more, we can use 'each' or 'every'.
Lions have sharp claws on each or every paw.
'Each' can be used as a pronoun, while 'every' can't.
Look at those cakes! I want a slice of each!
'Every' object is together. 'Each' object is on its own.