Sometimes parents are tyrannized by the sleep patterns of their young children. They can be afraid of doing some kind of psychological damage by enforcing firm bed-time rules, or they may not be able to stick to a constant routine and the kids get confused. If you think your kids are controlling the sleep situation and you don't like their rules, please see a counselor for some ideas on how to get your kids to sleep. You can try reading books on the topic, there are many out. If you are lying in bed worrying about what you've said to someone, and you do that fairly often, there is a chance you have a problem with anxiety of some kind.
Anxiety is a sleep-killer but there are lots of ways to neutralize it.
Again, if you are worrying about a relationship, that will impair your ability to sleep. Sometimes, of course, your insomnia and the results of it may cause troubles in relationships. It's very helpful to sort out which is the primary problem, or to start making changes in your relationships to they feel better. A counselor is a useful ally in this work. Every person has different needs for touch.