Is "condition for noun verb ing" correct?
No, you would not say it either of those two ways you proposed in English. You would use an infinitive clause not a gerund clause.
There are two conditions for the box to contain a ball.
The versions with the gerunds don’t sound natural to me. You could also put it this way:
For the box to contain a ball, two conditions must be met.