A form's definition is stored as a Salesforce File named Template.3bt on the form record. Every time a designer saves in the builder, a new version of that file is created. A form version is therefore a specific file version. The theme is stored the same way in a separate file, but the theme always uses its latest version.
Each save can carry a reason. The reason is stored on the file version and shown in the version history, so the audit trail explains what each save changed.
The builder toolbar has a Version History control next to Save. It lists every saved version of the form, newest first, with the save reason and who saved it. Selecting a version loads that definition into the builder as an unsaved change, so a designer can review it and, by saving, promote it to the newest version. This is how you roll a form back to an earlier state.
When a form is opened, the runtime decides which version to render:
versionId parameter or inside an encrypted Form Key, the runtime serves that exact version.This lets you either keep a link always current (latest) or freeze a link to a known definition (pinned). See Publishing a form and Form key and session key.
When a form is submitted, the version that was rendered is stamped onto the response record's Data Version field. This pins the response to the exact definition the submitter answered. The preview app uses that stamp to replay the submission against the same version, so a review always shows the form as the submitter saw it, even if the form has since changed. See How previews work and version control.