If you have deleted a previously created activity from the course, you can restore it from the Moodle backup repository. This is done by using the recycle bin. Deleted activities remain in the trash for a week, after which they are permanently deleted.
You can find the recycle bin from More > Recycle bin.
Recycle bin looks like this: