Use 'do' or 'does' when asking a question in the simple present form.
A quick reminder: the simple present is used to talk about routine, habits, general truths, when talking about an official scheduled event and when giving instructions/directions.
I - we - you - they DO
She - he - it DOES
Use 'did' when asking a question in the simple past form.
A quick reminder: the simple past is used to talk about a completed action in the past.
I - we - you - they - she - he - it DID
Let's have a look at some examples:
PRESENT:
Do you like chocolate?
Do you get the train to work?
What time do you usually go to bed?
Do your friends want to come with us?
How often do you go to the gym?
What time does the train leave?
Do we need to leave soon?
Do I need to bring my passport?
Does your sister live near here?
PAST:
Did you have a nice weekend?
Did you enjoy your holiday?
Did the interview go well?
Did you go to the gym last week?
Did you remember to buy chocolate?
Where did you go on holiday?
What did you do last night?
How much did it cost?
When did you find out?