Why is everything wrong in my life?

I lost my job, I’m worried because I’ve got financial problems, and everything is going wrong. What can I do?

How to control my negative thoughts?

What should I do to control the repetitive thoughts that are driving me crazy and leading me to depression?

How to stop being depressed?

My life is without meaning, I feel alone and desperate and the only thing I think about is wanting to die. Please help me, what should I do?