There must have many causes behind your those acts,but commit suicide is not the solition.u r just 21 yrs old,and a lond life is waiting for u.Nothing is permanent,not yours problems also.Just keep calm your self and discuss your problem with your parents.
Next Steps
1.Dont discuss your problem with anyone.
2.Try to sleep atleast 8-10hours at night
3.Keep safe distan e from your normal world and virtual world(social media)