As a general rule, we use:
- 'some' for affirmative sentences;
- 'any' for questions or negative sentences.
Usually, both 'some' and 'any' can only be used with countable plural nouns or uncountable nouns.
In an Enclosed Space
In tells us the noun is in an enclosed space (surround or closed off on all sides). Basically, when something is inside something.