Even with the tray properly installed, the factory IDE cable is so short that any motion on the bay (which is their purpose of course, to move around that is) means severe stress on the mainboard IDE header.

Yours is now in definite need of repair (resoldering at a minimum).

Cheers