It may actually be broken. One issue that can cause random sounds is the drawbar either not being aligned or one of the wires broken under the heatshrink and making intermittent contact.
Do other TMCC and/or Legacy locomotives work with the Legacy command system?