If your phone is locked to AT&T and you were once a customer but no longer, AND you don't owe them money or anything, they will unlock your phone.
Go to their website and read the requirements. Read them to the CS rep on the phone if you have to, then ask for their supervisor if the don't unlock it.