A Very White Ball

I am a white ball, a very white ball. Sometimes I go far and sometimes I go in. What am I?