# 2 is incorrect. #1 and 3 can be used. Of course the difference lies in the context.
I had been married before is wrong because using past perfect tense alone doesn't make sense so much. If you add someting after before like " before he was killed " ,it will be okay.