Do not spend too much time in finding out what you eat can help you to be healthy any more. It would not work definitely.
What you should care is whether your body has enough energy or not, which is the key point to be healthy. In order that your body has enough energy to function well, the most important thing you have to do is to sleep in right time.
You must think that I am talking rubbish because you could not sleep in the first place. In that case, you have to find out the reason why you cannot go to sleep.
If you have problem in your stomach system, it is difficult to go to sleep. If your heart does not feel well, it is hard to go to sleep, too. There are other reasons, as well.
Everyone has problem and we are all different. Pay attention to your body and it will not be that difficult to know your reason of sleeping disorder.