Problem solved! Thanks for all your advice chaps, I rechecked everything, including looking for short circuits, none appeared and then I tested with a decoder borrowed from another loco and everything worked fine. I think the problem is most likely in the simple decoder I use for testing before fitting sound ones. It looks like a £35 replacement test decoder is the order of the day.
John.