Confused

Carolyn
I have always had regular periods 28 day cycle miscarried May 2015 and September 2015, now I'm irregular and been diagnosed with PCOS (all new to me) I dont understand how this can all of a sudden happen I have now been prescribed Metformin and i am in complete shock...any thoughts?