Line up the striped side of the cables with pin1 that is marked on the motherboard. Make sure all the pins mate the plug.
The twist end of the floppy cable is the drive end, plug the straight end into the motherboard. Doesn't matter which drive you connect to which connector on the floppy cable.