In this research, the radial Schr¨odinger equation is solved analytically using the Nikiforov-Uvarov method with the Cornell potential. The energy spectrum and the corresponding wave function are obtained in close form. The effect of Topological Defect on the thermal properties and mass spectra of heavy mesons such as charmonium and bottomonium are studied with the obtained energy spectrum. It is found that the presence of the Topological Defect increases the mass spectra and moves the values close to the experimental data. Our results agreed with the experimental data and are seen to be improved when compared with other works.