If you are having pessimistic views about future and yourself and also feelings to end your life ,you need to consult a psychiatrist and get yourself evaluated ,so that necessary treatment is given to you. This problem has a cure and with proper treatment you will be your normal self again. Don't loose hope , believe in yourself and seek help from a professional.
Next Steps
Consult a psychiatrist as soon as possible,either in person if not possible then online.