1. a sudden involuntary contraction of a muscle or group of muscles. 2. a sudden, transitory constriction of a passage, canal, or orifice; spasms usually occur when the nerves supplying muscles are irritated, and are often accompanied by pain. A vasospasm is a rare type that occurs in a blood vessel.
Effected means executed, produced, or brought about. For example, The dictatorial regime quickly effected changes to the constitution that restricted the freedom of the people. On the other hand, affected means made an impact on. It is the past tense of the verb form of affect, which means to impact.
The noun impact can refer to a physical force (like a collision), an influence (a bad role model or a hero), or a strong effect (a foot of snow will have an impact on driving conditions). Impact is used most often as a noun. A good teacher might have an impact (influence) on a struggling student.