When we see a person get electric shock we should carry out the following steps:
1) Do not panic.
2) Cut-off the electric connection. Either switch off the power supply/remove the fuse or push away the person in contact with electricity using a non-electric-conducting material.
3) Check if the person is conscious/breathing.
4) Call an ambulance if the shock is severe.
5) Until the ambulance arrives, warm the person up by massaging softly / provide artificial breathing if necessary / provide CPR if necessary.