WD My Pasport Essential 500MB Error: Need to format before can use

You can try a different cable to see if that’s the issue and not the partition problem.

If the partition table is corrupted and due to that Windows will not mount the drive.