If my wife is vaccinated with rubella, why IgM positive?

Should be positive. Igm is the immunoglobulin noted for coming out early in response to any illness or vaccine, it fades over time while igg come out a bit later and stays up longer. If your wife had a rubella vaccine a positive IgM indicates she had a good response to the vaccine and future pregnancies will not be at risk.