How can I get rotation in the X and Y Axis in object mode? When I try to rotate an object in object mode,
It rotates only in the Z axis.
This axis seems to be a constrained axis.

How can I get rotation in the X and Y Axis in object mode?

Thank you.
Shift+Z after entering rotation mode will bound the rotation to only the x and y axis.
In general, Shift+axis letter will bind the translation to all axes apart from the chosen axis.