Hello Friend, Good that you are seeking a help. Memory related problems are quite common among students as you need juggle between studies, personal interests, social media, Internet and many more distraction!!.
Learn yoga and meditation as a simple technique to improve your concentration.
Consult a psychologists to explore any other condition within you causing such disturbances. Follow the recommendations, you will be alright soon.
Next Steps
Feel free to reach out to me online through Practo app for further evaluation and recommendation