I have rebooted the system many times.
Another odd symptom was when I would entered the command $ groups the sudo wasn't there when it was there in the /etc/group file.
Anyways I got it working again.
I remember that while I was trying to change my file with the GUI, I also edited the /etc/pam.d/common-password file to remove the obscure modifier. That when this started.
So I ran
Disabled all the pam modules, then rebooted, then ran the comand again and reenabled the previous pam modules and rebooted again. It re-wrote the /etc/pam.d /common-password file and now its working again.
And $ groups returns the sudo group and sudo works.