You shouldn't buy a replacement controller unless yo have tested your present one and found the fault, otherwise you might be wasting your time and money. See post #24 here.
Help! - Replacement electronic controller required
I can't understand any of that. The replacement controller was replaced, the controller you wanted to put in is out, and the one you took out is in. Is that it? Not that it matters because you still haven't explained what the problem is. Did something catch fire? Was your motor going too fast...
www.pedelecs.co.uk