Hello. Thank for sharing your story.
Some students perform poorly on tests for reasons other than lack of preparation or poor study skills. This common problem is called test anxiety and it occurs when students are too nervous to recall learned material during an exam. Test anxiety may be caused by a number of factors such as poor test performance in the past, lack of confidence, feelings of extreme pressure or fear of failure, nervousness about having to perform or a number of other problems. I hope you were able to find help and improve as you went along in school.