It may be possible to patch the damaged section of the pipe. Otherwise, the damaged part will have to be removed, and a new piece of piping can be fitted in its place.