Car loss in power.

I have a 91 obd0 integra and i replaced the distributor because old one is broken so car wouldnt stay on for long with it. So i bought one from my friend but the car lacks in power now. the car doesnt die anymore and it starts up right away unlike with the other distributor. And im sure the times is right since it runs fine with the old distributor only problem is it dies when i stop .