Inside your household dishwasher is a light bulb, with a round glass cover. The gasket sits behind this lamp cover, creating a seal which prevents water and condensation from getting in and damaging the lamp. Gaskets can wear out over time, luckily they can be replaced.
If this gasket is worn or damaged, there will be water leaking where the water supply at the back of your dishwasher cavity connects with the drainage channel. This will mean that water won't be flowing to the upper spray arm as it should and the dishes in the upper basket won't be getting cleaned properly.