it sounds as a bad contact or a broken cord. isn't there a part of cord, which you didn't replace ?
open