The answer to 'how to fix surge protector' is to first unplug the surge protector from the wall outlet. Then, visually inspect the surge protector for any signs of damage, such as scorch marks or a tripped circuit breaker. If the surge protector appears damaged, it's best to replace it with a new one. If it's not damaged, you can try resetting the surge protector by pressing the reset button, if it has one. If the surge protector still doesn't work, it may need to be replaced.
It's important to note that if you're not comfortable working with electrical components, it's best to call a licensed electrician to inspect and fix the surge protector. Attempting to repair it yourself could be dangerous if you don't have the proper knowledge and experience.