How to fix a halogen light with missing transformer plug
You have probably replaced a regulated power supply (this creates a constant 12V) with an unregulated one (which supplies 12V on average, but the actual level fluctuates). Or the power rating of the new transformer is too low.  

You need a regulated power supply that can supply not just the right voltage (V) but also enough power (W).