Hi. there are so many reasons for getting depressed and also many factors are there for which you couldn't sleep at night. You can't prolong this situation for a long time. So in order to help u, you should see get counselling and therapy if needed to come out of Ur depression. Please talk to a psychologist and so Ur problem will get solved. If the issue has occurred recently I am sure we can easily bring u out of it.
Next Steps
depending on Ur issue when u do physical exercise and eat well u can sleep well. but coming out of sadness is vital.
Health Tips
u need not feel anything negative and get depressed. change Ur ideas and practice yoga. follow diet given by psychologist.