1987 Dodge D150 pickup 5.2l 318 cid

My transmission recently went out in my D 150 looking to get it fixed witch would be better rebuilding what I have or just getting another not looking for best price looking for what going to last longer THX