We use used to + infinitive to talk about a past situation that is no longer true. It tells us that there was a repeated action or state in the past which has now changed. She used to be a long-distance runner when she was younger. I didn't use to sleep very well, but then I started doing yoga and it really helps.