WD external hard drive not detected
The external hard drive, a WD 500Gb (western digital) is not detected when I plug it into my Mac laptop. It worked recently then suddenly stopped. It's not seen in the disk utility, the computer doesn't read it's there at all. I've tried turning things on and off. I've tried checking the box under preferences tab to show it. Nothing works. I don't think it's the cord because I can hear the little spinning sound when it's plugged in and it lights up.
I don't want to lose access to the data on my external hard drive . Please help, thanks!
MacBook Pro (13-inch Late 2011), iOS 7.1