Meaning: This sentence conveys the idea that someone had the desire to sleep but was unable to fall asleep.
Choice of Words: The verb "wanted" expresses a desire or intention, and "sleep" refers to the state of being asleep. "But" is a conjunction that introduces a contrasting idea, and "could not" is a modal verb used to express inability.