There are a small number of people on this board who have the skills and ability to repair the electronics. Whether the cost of the repair will make it worth doing is another matter.
If I was into running trains with electronics, I'd be certain to have my wiring set up with the proper circuit breakers and surge protectors. If feasible, I'd put surge protectors right in the locomotives and other items with electronics. (Why don't the toy train manufacturers do that?)
My preference is for trains without electronics, but I do have a few pieces that have them.