what to do if my all google apps are not working properly
Its is not necessary to fully wipe the phone. You can go to app manager and reset all google apps to their factory states and update them once they are functional. This is only for not working apps in case you did not get stuck during rooting. If in case you tried to root it, then try unrooting and rooting again and if this does not fix the problem, then do a factory reset.