It’s long been a subject of controversy, as well as a few dramatic movie scenes, but electroconvulsive therapy, aka shock therapy, also appears to work when other treatments don’t in some persistent cases of depression. Now the medical community has a little more insight into how it helps patients.