PDF/X is formalized in ISO Standard 15929 and 15930:
ISO 15929 (which was withdrawn in March 2008 and no longer is an official standard) specifies the guidelines and principles for the development of PDF/X standards.
ISO 15930 defines the specific implementations:
ISO 15930-1:2001: PDF/X-1a:2001, Blind exchange in CMYK + Spot Colors, based on PDF 1.3
ISO 15930-2: PDF/X-2, was never published.
ISO 15930-3:2002: PDF/X-3:2002, Allows CMYK, Spot, Calibrated (managed) RGB, CIELAB, with ICC Profile, based on PDF 1.3.
ISO 15930-4:2003: PDF/X-1a:2003, revision of PDF/X-1a:2001 based on PDF 1.4
ISO 15930-5: PDF/X-2, An extension of PDF/X-3 which allows for OPI-like (external linked) data to be included
ISO 15930-6:2003: PDF/X-3:2003, revision of PDF/X-3:2002 based on PDF 1.4
ISO 15930-7:2008: PDF/X-4, Colour-managed, CMYK, gray, RGB or spot colour data are supported, as are PDF transparency and optional content. A second conformance level named PDF/X-4p may be used when the ICC Profile in the output intent is externally supplied.
ISO 15930-8:2008 PDF/X-5,a collection of three conformance levels:
PDF/X-5g: An extension of PDF/X-4 that enables the use of OPI-like workflows.
PDF/X-5pg: An extension of PDF/X-4p that enables the use of OPI-like workflows in conjunction with a reference to an external ICC Profile for the output intent.
PDF/X-5n: An extension of PDF/X-4p that allows the externally supplied ICC Profile for the output intent to use a color space other than Grayscale, RGB and CMYK.
Which one are you using?
Go for the ones/ one which relates more closely to what you do if you need to do all three then that's what you do!