Help Weird problems when battery removed


When i remove the battery and put it back my phone behaves strangely. The email cant update because it pops up infinite security warnings. I also have warnings at the browser but they get away after sometime. I also lose time and date.

So i decided to do a factory reset to find stranger things. Now when i remove the battery i have additional problems. Initially everything was ok but when i removed the battery youtube googleplay and googlemaps didnt work at all it said i had no connection even though the browser worked (wifi). So i factory reseted again removed the battery and now the youtube works but not the googleplay and googlemaps. Im afraid to remove the battery again so my simcard and sdcard are now locked.

What is the problem with my phone? Thanks.