If you have sleep issues go see a healthcare professional. Don't follow advice from random strangers on the Internet.
The circadian rhythm (aka sleep cycle) is regulated by a hormone called melatonin (not to be confused with melanin). It is produced by the pineal gland after exposure to light.
Light intensity from artificial light is usually low (unless you use luminotherapy lamps), leading to melatonin production issues, which affect sleep.
You can solve that by spending a bit more time outside. If you happen to live in a place with dark winters, get a luminotherapy lamp.
Other than that, there are other aspects that have to do with how tired you might feel... nutrition, hydration, exercise, etc. You can do all of that correctly while still having insomnia.