I’m an industrial electrician, and I only get into house wiring occasionally (on the side) but I could probably help you since you can’t do industrial wiring without knowledge of the basics anyways.
I’m somewhat confused by your question. I’m assuming you’re talking about a general toggle (single pole) switch, with the standard on/off markings. I’m not sure if you have any three or four way switches involved with this circuit, but three and four ways do not come with on/off markings, and they use traveler wires (the conductors that are directly involved in the switching function, but not the commons themselves), and the common terminals (power supply wire and wire out to the load) are usually black, the traveler terminals are usually a color other than black. I’m not going to far with the three or four way setup since I’m not even sure you have these in this circuit.
Switches usually don’t come with conductors, they (switches) only control the flow of current. Switches are not loads, but devices. Well I read above and you had mentioned it is a timer switch so never mind. I’m not sure what you mean by the ‘socket’, and I’m still not sure of your setup here enough to help you. You could use the chasis or grounding conductor as a ‘neutral’. However this is against NEC, and I’m even more certain that this would violate the even more stricter local codes as well. When you use the ground as a neutral (I’ve seen this setup alot unfortunately in various factories) everything that is grounded becomes ‘hot’. The reason why you don’t get shocked by the grounds/chasis (the neutral is generally tapped together with the earth ground) is because the splice itself is located inside of the panel right at the earth ground, so the current flowing from the neutral will take the path of least resistance to earth ground.
Make sure you purchased the right timer, with the right voltage. Try reading the diagram that should have came with the timer. Also, do you have (or know how to use) a multimeter or voltage tester? From my experience with industrial timers, they usually use two ‘hot’ wires of the same potential (for 120 volt timers), one hot wire is used for powering the timer (timer motor) itself, this is why a timer in this situation generally uses a neutral, again to power the timer motor. The other hot leg is used for switching purposes, usually going out to the load. A typical single pole switch (like the one you originally had) would use only two wires, while the neutral would bypass the switch to directly feed the load (in this case your light).
What about the wires running from the light to the switch? How many conductors do you have there? I hate giving this type of advice without having you test each wire with a multimeter, but try this: Find out which wire on the timer is your common, it will either be the black or red wire, and the timer diagram should tell you which one is which. Your common (either the black or red wire here) needs to be connected to the wire that would normally be hot, going out to the light itself. This wire would have been one of your original switching wires. The hot leg that supplies power to the switch (the black you’re likely talking about above being in the wall) should be connected to the timer itself (either the red or black wire on your timer switch). Hook the neutral on in your switch box directly to the nuetral on your timer (white to white). Don’t use the ground here for anything, except for grounding the chasis (lighting fixture or junction box that the light is installed from). Make sure your neutral in the switch box is spliced with both the white wire going to the timer, and the wire that you’ll be using as the neutral going out from the switch box to your light itself. I know what your problem is here, and it is a simple one for me, but it is just so hard for me to explain to you. If you’re not sure of what I’m writing here just ask me below here. I’m probably the only electrician on fluther.