When you say jammed, what exactly is happening?
1) When you try to go up the gears (towards 8th) are you able to move the handlebar selector or does the cable go tight preventing this?
2) When you go down the gears (towards 1st) what happens to the cable? Does it remain under tension or does it go slack?
3) When you change gear (bike stationary), does the shifter mechanism on the rear wheel rotate?
If the cable goes tight when you try (1) and slack with (2), it could be dirt jamming the selector mechanism. Or it could be an internal failure inside the hub.
Likewise with (3) if it rotates, very likely to be an internal failure, if stuck, dirt or internal failure.
Probably best to do those simple tests first. If, dirt is a possibility and you feel confident to take the back wheel out and strip the selector down and clean it, that would be worth a try. If not, it might be a warranty item.