This idiom is used to indicate a post situation, action, or habit that does not exist in the present. The idiom is always followed by a simple verb form.
I used to live in New York, but I moved to California two years ago.
Kim used to smoke cigarettes but she stopped the habit last month.