If the affirmative sentence contains no auxiliary or modal verb, then the appropriately inflected form of the auxiliary "did" is added to make the question (except if the main verb is "be" or, sometimes, "have"). At the same time, the main verb is made into its base form: I hung up the phone. -> Why did you hang up the phone?
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.