Subject + used to + infinitive is used to refer to things in the past which are no longer true. It can refer to repeated actions or to a state or situation.
Negative form
Question form