Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
It sounds like a gimbal lock problem. Set in your object tab of your sphere 'Rotation Mode' to 'Quaternion WXYZ' and delete the old keyframes and reanimate it.