High IgG antibodies but negative igm. What does this mean?

Remote infection. Igm is the first class of antibody made to a microbe and after several months the immune system starts to make igg class of antibodies and then the immune system stops making igm. If all that is found is igg to a particular microbe it means that you were infected over about 6 months to many years previously.