You'll have to disassemble the floppy drive and casing of the eject motor. There's a switch inside that probably has dirt on the contacts it that needs to be cleaned. Otherwise it's possible the gearbox of the eject motor is damaged.
Here's a good article how to take the drive apart and fix the eject mechanism
http://forums.macrumors.com/showthread.php?t=1354182
Here's a good article how to take the drive apart and fix the eject mechanism
http://forums.macrumors.com/showthread.php?t=1354182