You use 'used to' to when we talk about habits or states we were in the past, but which are not true anymore.
- She used to go away on long trips.
When it's a question or negative sentence you say 'Did ...use to' / did not instead of 'used to'.
- He didn't use to wear nice clothes. / - What did you use to go to London for?