You could try washing the fabrics with baking soda. It is known for removing odors when dry, so it might work in a washer, too. Otherwise, try the vinegar as others have suggested.
Some time ago. I heard that using dishwasher detergent (for dishwasher machines), can remove odors, but I have no idea what the amount of dishwasher detergent required is, nor have I ever tried it. I'd try this as a last ditch, before I pitch the fabric, attempt to get the odors out.
If the fabrics are old, I would not use bleach, peroxide or borax (it can bleach fabrics as I found out the hard way) on them, since bleaching agents generally weaken fabric fibers.