Some pieces of clothing only have a plural form and cannot be preceded by a/an, including jeans, leggings, overalls, pajamas, panties, shorts, underpants, etc.
It's a pair of socks. It's incorrect to say "a socks" because "a" is for "one". A pair of socks is one set of same-style socks, one right and one left.