What did you do?

For the ones that are over weight and lost weight what did you do to help? I have been trying for six months to get pregnant and doctor told me try to lose weight my biggest problem is letting go sodas.