Is there a way I can dance in Vanilla Minecraft?

This is not possible in Vanilla Minecraft.

You need to install mods like Smart Moving which is compatible with your Minecraft version and provides various additional moving possibilities to Minecraft


No, there isn't. That's part of some mods, but not of Minecraft Vanilla.