It sounds like your hard drive is on the way out.
I upgraded the HD in my 2009 21.5" iMac to a 5TB Western Digital unit, and replaced the superdrive with a 256GB Crucial M4 SSD. I combined the two to form a 'fusion drive'. The machine now outperforms my 2014 MacBook Pro.
You should find this useful: click here