iMac will not boot

It looks like your HDD has a problem,

I would suggest to use a Target Disk mode and get the information of that disk.

Then try reformatting it and reinstalling the OS.