The invention relates to sulfonamide derivatives, to their use in medicine, to compositions containing them, to processes for their preparation and to intermediates used in such processes. More particularly the invention relates to new sulfonamide Nav1.7 inhibitors of formula (I) or pharmaceutically acceptable salts thereof, wherein X, Y1, Y2, Z, R1, R2 and R3 are as defined in the description. Nav 1.7 inhibitors are potentially useful in the treatment of a wide range of disorders, particularly pain.