The ribbon cable has a colored stripe on one edge. This edge indicates the "Pin 1" side of the connector. The pin numbers may be marked on the motherboard, and on the drive pin 1 is on the closest edge to the power connector.
If the floppy drive light stays on continuously, this usually means...