Both USED TO and WOULD describe past habits or repeated actions. USED TO can also describe past states. WOULD only describes repeated actions (not states).
Practice tip: Past state (live, be, have)? USED TO only. Past habit (repeated action)? Both USED TO and WOULD work. WOULD is more formal.