Two dogs running on the sand.
two dogs are running in the sand
On the sand refers to "on the ground," but is also commonly referred to as "in" the sand as they are sinking into and surrounded by it.
(-x)
(-x)