On a hard disk, consecutive sectors sit next to each other on a track, and deleted data stays put until something is written over it. On flash, the controller's map (the flash translation layer) puts data anywhere, moves it around to spread wear, and may erase freed space by itself.
So on hard disks physical position matters: the heads travel to each spot, and reading in disk order is faster and gentler than jumping around (DiskSalvor's "disk order" and "one sweep" copy modes use this). On flash, order barely matters.
Both kinds keep spare blocks. When a spot goes bad, the drive quietly maps that sector number to a spare. The drive's health log counts these swaps ("reallocated sectors"), and the ones it couldn't read yet ("pending sectors").