If it is physical damage, then the sectors can only be marked to be ignored so they are not written to in the future.....i don't think you can use a software to fix something physically broken (although i think there may be software out there that fixes physical damage via remagnetisation...???)
Anyway, most HDD manufacturers offer software on their website that can remap any bad sectors but for the long term you probably need to purchase a new HDD.
