an action that happened regularly in the past but no longer happens.
past states.
the negative from of used to is didn't used to.
used to can be replaced by would to talk about action that happened regularly in the past. it cannot be replaced by would when it talks about past states.