Maytag dishwasher not cleaning well esp. top rack

Recently we noticed the dishes aren’t getting that clean, especially the top rack ones. We also don’t think the top sprayer/fan is spinning. Sometimes the items on the top rack have a film on them or just not as clean as should be. Bottom rack cleans well. Any ideas? I want to repair instead of replacing because I plan on redoing the kitchen next spring and will replace then.