Unhappy [Q] google apps not working

couple weeks ago my friend rooted my phone then google apps stopped working after that i unrooted the phone thinking it would make it work and now its still not working evertime i try to sign in it says it cant establish connection to server.... somebody help please btw this is on galaxy s4