The Event Registration Form can be used in two different ways. The first way is within a loop. In that case the ID does not has to be assigned, and the form for the current loopitem will be shown.
In the other case, when you use it outside of a loop, the event of an event has to be assigned.
Please note that in all the included templates for the event CPT the form is already automatically added to the template.
The form #

ID #
The element has a single value to set, the ID. If empty and within a loop it shows the current loop-item, when a valid ID of an event-CPT is set, it shows the data of the set item.