Hello!
Now, regarding this it can be caused by 2 things, server lag or your ping.
Server lag will affect all players, it rarely happens but if the server is seeing high amounts of players it may start to lag.
Your ping will only affect you, causing you to get stuck in blocks, another player...