tired of being tired

cant sleep at night due to pain and stress unless i take something to help me sleep but then im tired all the next day. sometimes it feels like i lose no matter what i do.