Five on one basketball is the act of masturbating. Since your hand has five fingers(generally) and you use your hand to masturbate(usually), the term was coined.
"Hey, did you and that broad have sex last night?"
"Nah, she got me all worked up and left, so I got in a good session of 'five one one basketball' to cure my blue balls"