8 GB RAM is way too little. Bump up to at least 16, if not 32 and you'll see an improved performance, but a bit. Also, not sure what GPU that iMac has, but if it isn't spec, or lower end, Motion of all things will bog down. And, I assume you're running on the internal drive (a no-no for video work, T'bolt or USB 3 ext for that), so verify you have at least 15% of its total capacity left as free space. Do you have a second monitor connected? What GPU does that iMac have?
But depending on what you're doing, Motion can bog the biggest, baddest computers to a crawl. To help out, go to the Render menu, top right. Make sure Resolution is set to something lower than Full, and Quality is set to Normal, if not Draft. Then in the rest of that Render menu, make sure all the things you don't really need at the moment are turned off (lighting, shadows, motion blur, etc).
Apple's posted minimum specs are just that, the bare minimum you can get Motion to run with, not what Motion runs optimally with. And 3D anything eats up computer resources like crazy.