Two boys inside a fence jump in the air while holding a basketball.
Two boys jump.
If the boys jump in the air, they have jumped
The boys jump in both sentences; the details of why do not matter.
Two boys inside a fence jump in the air because they are playing basketball.