Do you can connect other devices to the FW 800 ?
If not you need to reset the FW ports.
Reset the iMac's SMC > http://support.apple.com/kb/HT3964
1. Shut down the computer.
2. Unplug the computer's power cord.
3. Press and hold the power button for 5 seconds.
4. Release the power button.
5. Attach the computers power cable.
6. Press the power button to turn on the computer.
Reset the PRAM > http://support.apple.com/kb/HT1379
1. Shut down the computer.
2. Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
3. Turn on the computer.
4. Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
5. Hold the keys down until the computer restarts and you hear the startup sound for the second time.
6. Release the keys.
If the above resets also fail to get the FireWire Port working, then you need to recontact Apple Support or your local Apple Service Provider and make arrangements to have the iMac serviced.