You may just be suffocating in the sand since, well, that's just how it works in Minecraft, same as gravel. Just try breaking it with a shovel, or with your fist, if you don't have a shovel on you. If you can't move out of the sand after that or it will not break please post this is the bug reports sections.