How can I repair a red 12v train motor from Set# 7730?
According to Bricklink,  Set # 7730 has this motor :

bb12va Electric, Train Motor 12V Modern Type I with 2 round contact holes

For disassembly and repair you can look at this large post with pictures on Eurobricks by Andromeda