WH questions past simple
Though your question is not clear and seems incomplete, here is some related information:
To create a wh-question in simple past, start with the wh-word, then add did, then the subject followed by the base form of the verb and only then add the rest of the sentence. For example -
When did you buy that bat?
Why did the computer break down?
Why did you leave the party?