Yep, I agree with mayer. To prevent these issues in the future, make sure that you are properly ejecting your drives, shutting down your laptop/computer properly, and keeping the external in a place where it won't get banged around.
If the externals are still having problems after formatting/proper usage, you might want to contact Western Digital for their warranty, which I believe is 2-3 years per HDD.