Men playing basketball, the guy with the ball is attempting a layup.
Men are playing basketball.
Men playing basketball is a paraphrase of men are playing basketball.
guy with the ball is attempting a layup so they are playing basketball.
The men are playing basketball because men are playing basketball.