Hi. It seems that you remain preoccupied with thoughts which leads to inattention and hence your symptoms. You should consult a psychiatrist for complete evaluation of anxiety/ sadness.
Next Steps
Get a psychiatric consultation and undergo complete evaluation.
Health Tips
Try exercising daily. It helps.