Car pops out of a gear

You've noticed that...

When driving along the gear stick will suddenly pop out of gear into neutral, this will often result in over-revving the engine if your foot is on the accelerator. It will often also be difficult to change into some gears.
These 2 parts can be connected to or cause the problem