2D ball not rotating in air

Hello, my player (ball) is rotating just fine on the ground when moving, not rotating in air when Im moving it though. Im not using any code to rotate it, simply rigidbody2d. Im moving it using getAxis. What should I do?

Place a cube collider in the air that is stationary and doesn’t move. (Like a platform in a platform game.)

Roll the ball in a way it will hit the cube.

It should now rotate in the air after collision with the cube. Also more description (and the script) is needed to see what the problem is- but someone much more experienced might immediately know what is going on. (For example your input, what the ground is made of, what it is doing in the air specifically and how you got it up there.)