A "substitute" refers to an object/person that is replacing another object/person, as in a "substitute teacher."
"Substitution" refers to the action of substituting.
#1: When baking cookies, margarine is a healthy substitute for butter.
#2: The substitution of margarine for butter makes a healthier cookie.