Tap on the damaged building card with“FIX” on it.

It will be repaired using Hammers and restored to its next upgrade level.