Medieval armies typically had blacksmiths and other artisans following them, so soldiers with damaged equipment would go to them for repairs.
In the typical medieval army, weapons and armour were your personal property. When the muster was called, you were required by law to turn up with certain equipment based upon your social status and wealth. You were also responsible for ensuring it was maintained and repaired.