I think there is some hidden cause behind ur such attitude. Total history of ur is very much important to properly treat u.Some bad events,worse meMories,financial ruin,emotional disturbance causes such changes in our mood and behaviour.
U have to change ur behaviour .
Consult psychologist Online or offline who help to sort out those things and also help u to find a path of those problems.
Next Steps
Find the causes and then asnwers of ur problems with the help of psychologist or counsellor.
Change ur view towards life and change behaviour.
Find ur goal in life and try to concentrate on that.
Health Tips
avoid too much social media.
Sleep 8 hrs at night.
share ur thoughts to ur family.
spent quality times with ur family.
regular exercise better ur physical health.