I have been recently feeling that I don't have a purpose in life and I feel not me. I feel like I'm losing or I'm trying my best in everything but still I'm not happy with my life.I don't know what the purpose of my life is.

Put your trust in Allah and read uplifting material, work harder on strengthening your faith and adopt some healthy positive habits and hobbies.