On a bolt, you can sometimes clean out the thread with a knife
or hacksaw blade enough to start the nut and tighten it to reform
the thread past the damage. In a hole, they make thread chasers
that will recut the the thread. You can just run a tap in the hole
and it will usually find the old grooves.