a few things to try first.
-use a different sata cable
-use a different power cable
-try the drive in a different sata port on the motherboard
my first thought was a motherboard fault, which it may well be but try the above first, if nothing else you can eliminate three things as possible faults in the mean time.