banging noise on spin cycle front loading

The washer bangs extremely loud on the spin cycle. I replaced the belt but the replacement belt won’t stay on so went back to old belt. Is it the shock absorbers or springs??