To repair the ship you take the part back to the main platform - at which point it goes into a "puzzle" mode, where you reconnect the new part to install it. After that piece is installed you get sent back into play mode, and continue collecting the remaining parts for that ship. When that ship is repaired it will fly off and another ship will land and need repairs.