I’m assuming this HDD is being mounted internal; in one of the four main HDD bays, or in a retrofit bay in one of the two optical drive bays.
Try that HDD in a different enclosure with a different SATA controller or different server; preferably one with 6 Gbps support. That might be a SAS/SATA 6 Gbps controller in the Mac Pro. See if the HDD works there.
Early Intel Mac Pro and its contemporary Intel Xserve servers can tend to be fussy about their HDD storage. Mac Pro 2012 wants / needs SATA 2.0 / SATA II /SATA 3 Gbps HDDs, or slower, and this is a 6 Gbps drive, which means you’re dependent on how well this HDD falls back to SATA 2.0 or SATA 1.0 connections that the Mac pro will expect.
If you decide to return this, OWC has HDDs that should work here, but confirm with them before buying. https://eshop.macsales.com/shop/ssd/owc/mac-pro/2009-2012 (scroll way down) (I’m using WD UltraStar in NAS, and these prices are reasonable.)
Some Amazon marketplace sellers are seemingly prone to scams and fraud. Those concerns aside, this wouldn’t be the first dead-on-arrival new or refurb HDD, that even from a reputable seller.