A component is generally a part of equipment. Spare parts are generally used to replace parts that are no longer working normally. They can refer to the same thing, but their uses are different.
For example, there are two concrete pump pipes: one installed on a concrete pump (the component), and one purchased to replace an old pipe (the spare part).v