How does an antispasmodic work?

Can you answer this question?