If you replace a BCM, it needs to be programmed. Also both keys must be programmed with the BCM. This needs to be done with Tesla Toolbox 3.
Also some parts are known that they can't be used in different cars than the car it was used in. I can imagine that the BCM can't be connected to another car.