Ex-sheriff Gordon pleads not guilty