I have some questions.
I don’t have any questions.
We use any in questions.
We use some in positive sentences.
We use any in negative sentences.
The flower came from some place which nobody knew.
The little prince said, “I didn’t have any sleep.”
The little prince asked, “Does the planet have any oceans?”
You can see more examples in the book The Little Prince.