What do you mean by "put back"? If you mean the wires were removed then I suggest:
1. find the firing order (sometimes this is on the intake manifold)
2. locate the number one cylinder at top dead center
3. pull the cap and find what terminal the rotor is pointing at
4. install wires to plugs and place onto the distibutor in the firing order.