By chance I found this in another Thread:-
"Two black balls one over the other is the signal for 'I am not under command' i.e. I've broken down, and of course the origin of the term 'a right balls up'. "
Talking here about nautical flag signals.
Dave