Look closely at the IDE ribbon cable plugs and you'll see each has a notch. There is also a red line down one side of the cable. Drives usually have a recess to accommodate the notch, helping you get it the right way round. Alternatively, make sure the red stripe goes closest to the drive's power connector.