What to do when you are sad; and first, definitely praise God. He loves it when you talk to Him. He can make it better and show you the right perspective of your situation. He is certainly Bigger than your problem.
Self care & developing positive coping skills - 20 ideas to get you started: