What is the meaning of [had a ball]

The kids really had a ball (have a very enjoyable time) at the birthday party—they won’t stop talking about it!