You cannot use an old paper for a new class because that will be considered to be self-plagiarism. In fact, most papers are stored by plagiarism scanning software like Turnitin or SafeAssign in their permanent repositories. This means if you submit twice, the file will be flagged for plagiarism.
As a student, you must handle a unique thesis to ascertain your skills and competence. If a student once handled such a topic, you must go for a unique topic without repeating the already done and researched topic.
The main purpose of handling a new thesis is to avoid duplication and repetition. Repeating a topic makes students remain lazy as they may paraphrase someone’s ideas hence compromising research. A student should create a fresh topic and perform extensive and useful research to explore such a field professionally.