Simple past wh-questions follow one fixed pattern no matter the verb: wh-word, then did, then the subject, then the base verb. The good news is did never changes with the subject either.
Grammar reviewThe simple past: wh-questions
Wh-questions ask for specific information using words like what, where, when, why, who, and how.
Word order: Wh-word + did + subject + base verb + …?
“Why did she call you?” “Who did they invite?”
The one thing that's actually easier here than in the present: Did is the same for every subject: I, you, he, she, it, we, they. No do/does split to remember.
The most common mistake:
Once did is doing the "past" job, the main verb goes back to its plain base form. No past tense ending, no irregular form.
✗ “Why did he broke it?” (wrong: double marking the past)
✓ “Why did he break it?” (correct)