Why does my minecraft randomly freeze?

The game will be running at like 70/80 fps and the frames will just randomly drop and it freezes for like a second, its happens every several seconds, i've never had problems before, but this makes the game really difficult to play, any help on how to fix this?

The issue might be with your RAM. How big is it?

Someone might be using the phone. Do you have dial up internet? That's the problem.