In the past: Before, a long time ago
For example, let's say your mom used to be a teacher. She was a teacher formerly, but now she is a doctor.