How can I repair power armor?
You need to find a Power Armor Station. If you exit your power armor in front of this station, or interact with the station while wearing power armor, then using the station will give you the option to modify and repair the constituent pieces of the armor.
Sanctuary has a Power Armor Station, as well as the Red Rocket station you reach early in the game.