Both simple past and used to can be used to describe past habits, past facts, and past states;
Used to is preferred when emphasizing these forms of past repetition in positive sentences.
On the other hand, when asking questions or making negative sentences, a simple past is preferred.