A "ball" is a party where everyone dresses elegantly and dances.  They are big events where everything looks beautiful.  So if you are having a ball, i.e. throwing a big party, you are probably enjoying yourself a lot.