What would cause an electrocution sensation to back of head with numbness in both legs?

Multiple things. One reason that comes to my mind is arthritis of the neck with pinched nerves. However, other more serious disorders such as multiple sclerosis or other structural issues need to be ruled out. If symptoms persist, I suggest you go for a consultation with a neurologist.