This could be a problem caused by your router or your internet speed, if it is then i would recommend that you restart your router.
But i am not sure, i could be wrong. Just trying to help.
Hey, i was just banned today for wearing an inappropriate skin while unaware, so i changed my skin and restarted minecraft but i was still banned. How can i get unbanned? can anyone help?