If I'm understanding your problem correctly (it worked after you wired it up, then you moved it and now it doesn't work properly), it sounds like there's a loose connection somewhere. The first place to check would be the endcaps -- make sure the wires are inserted fully.