i've repaired few of my canon lenses (including the "red rings" bought 2nd hand).. most of them are due to broken flex cable. chaotic behaviour and comm not detected as you described are symptoms. bought replacement cable from ebay market. so i learnt lenses need to be stored with their flex cable straighten inside, usually at its longest focal lens position, but thats depend on lens type, if you opened it you'll know at which position it should be stored. store them with flex cable maximum bending, they will short lived. while disambling, mark the mating parts with some visible marker, esp barrels that you need to twist to unmate, its dog disappointment when you fully reassembled it just to figure out it cannot swing full range due to wrong mating alignment, and then need to dissasemble again just to correct it. on black part i will just use liquid correcting paper as marker, its sloppy but thats what i have. careful of the shims and spacers, dont lose them, and note their positions, your lens will be out of focus calibration if they are misplaced. be careful not to mess around delicate part such as aperture diaphragm, you'll need similar delicate hand and microscope to reassemble them if you screw them. as said, this repair procedure is strictly requires clean room with zero dust, in normal room or home lab, dust will get inside guaranteed, but i noticed no visible image degradation if you have slight dusts got inside, but remember to be as cleanest as you and your room possibly can while doing it, one tip for cheap repair in your home lab is to turn off all equipments that can cause air (hence dust) to circulate such as ceiling or wall fan and air conditioning, let the dust settle for few minutes and do the repair, but you will be bathed with sweat all over, so dont let the sweat get inside too. if you have winter like we dont, i think its better to do during that time. be ready with lint free tissue, lens cleaning fluid, and quality Lenspen is a must, you are going to need it if your fingerprint got onto the lens. cleaning fingerprint with normal tissue and cleaning fluid wont simply cut it, esp on internal lenses, your images will become hazy even if you thought you've cleaned them well enough. ymmv, cheers. ps: and yes, if you can find in youtube your particular lens such as posted by wilfred, you'll know what you are dealing with and can save you lots of learning the hard way during the repair process. another random 100-400 lens repair...
edit: try cleaning the contact pins first thoroughly maybe they became stained and lose contact, pushing them few times, and rotate all the rings may remove the long storage stain etc. may be there can easy fix before going deeper the fungus hole...