Comfort for the Struggling, Downcast Christian

How should a Christian respond to pain and despair? What to do when life is just a string of struggles? Going back to the basics of what God is doing is us through His work of sanctification, justification and perseverance, seem to be the better context to understand Christian struggle with sin.