It sounds like you suffered burnout, and now you are starting the process of recovering and getting back on track. You might never become the 4.0 student again that you once were – or maybe you will – but what you will gain through the recovery process is inner strength that will carry you through any hardships for the rest of your life.
Forgive yourself for going off track for awhile. It happens to so many people sooner or later. It is not a reflection on your abilities at all.
I recommend trying to find joy again, both related to your major and in other areas. Have you done an internship yet to get experience related to your major, to bring it to life so you can see where it could lead? Are you involved in any sports or fitness activities? Do you take time for creative expression with art or music or photography? Are you building and maintaining any relationships on campus? Are you involved in any clubs or volunteer activities? Do you spend time in nature soaking up the beauty? Are you taking care of yourself and your living area?
It is possible that there are many neglected areas in your life, and not just the academics. Try to make progress across the board, and achieve mini goals in various areas to gain the satisfaction of accomplishment.
I agree that you should see a doctor and have a complete physical done, to ensure you are not anemic or have some other issue that can cause fatigue or mental fogginess etc.
You could also take some career aptitude tests relating to skills and interests, and find out if your major is just a terrible fit, and if that has contributed to your loss of interest. While it may be too late to entirely change majors to graduate as soon as possible, if it turns out that another field would suit you better, you might be able to fit in an elective or an activity that excites you enough to get you interested in applying yourself to academics again, and you could plan how to work toward a suitable career.
Try to visualize how you would want your life to be, and how you want YOU to be as a person, and then start trying to live into that picture. Imagine a mastermind group of people you most admire – which can be anyone who ever lived now or in the past – and think of what advice they would give you, and how they might approach each day and each task at hand. Consider what you admire most about them and can try to emulate.
Reaching goals starts with a vision in your mind. When you say you “didn’t see any point in college,” it seems like you lost that vision of the possibilities. Picture yourself graduating by a certain date. Picture yourself succeeding in each class, and on each assignment and test. Make a list of the benefits people get from college – a break before entering the “real world” and having to work full-time; a chance to meet highly educated professors and students who will go on to become leaders across the country; a time to explore interests through clubs and activities and attend special events and performances on campus; an opportunity to get a degree which statistically leads to higher income throughout life; an opportunity to soak up knowledge and learn new skills and viewpoints, etc.
Start a gratitude journal, and every day write down three things that you are grateful for. That will help you focus on the joy and beauty of living, and how fortunate you are. Place things around your living area that represent symbolically achieving your goals, including making high grades and graduating.
Try to build in accountability for getting classwork done, possibly by working on some of it with other students, or asking someone to follow up with you on your progress. Give yourself rewards for turning in homework on time and studying.
You have the capacity within yourself to pull through and reach better days in your life. Look at this as a winter season, and the next one will be spring for you. Keep at it, and expect better results soon.