Thank you for writing to us. We understand the situation you are in. Most of us get into such confusion state at different points of career.
What makes you say that you feel demotivated and purposeless? Do a self analysis and understand what is your long term goal and what will motivate you? Do you think there can be an option of overlapping corporate career with your academia interest or being in academia and corporate will be two different work profiles?
Set up the priority between two options by evaluating pros and cons (with respect to your personal and professional considerations) of them for yourself and people around you.
Answering these questions for yourself will help you gain clarity and take appropriate decision. We will be happy to chat/talk with you to work with you on this aspect.