If you cant' sleep then your mind is probably in some degree of turmoil and has too much shit on it. (regardless of whether you consciously realize it or not)
If you don't lay down with racing thoughts, instead with a relatively peaceful state of mind, and you still can't sleep then something must be physically affecting you like a medication or food sensitivity etc. etc. it could be a thousand different things.