The only common use for the word “jamb” is to label the vertical part of the frame of a door or window. It comes from the French word for “leg”; think of the two side pieces of the frame as legs on either side of the opening.
For all other uses, it’s “jam”: stuck in a jam, traffic jam, logjam, jam session, etc.