If it's Bachmann's reversing trolley set with the shed, maybe you can try this -
Try another loco on the trackage, then try the trolley on a separate section of track that's not hooked up to the reversing set.
If a loco runs fine on the trolley track, then it could be the trolley at fault.
If the trolley runs fine on different track, then it could be the trolley track.
When I did this, the trolley ran fine on other track and the loco didn't run very well on the trolley track.
That meant it the trolley set up was the culprit.
On the Bach Man's advice, I tried a different "plug in" black box and it worked fine.
Try another loco on the trackage, then try the trolley on a separate section of track that's not hooked up to the reversing set.
If a loco runs fine on the trolley track, then it could be the trolley at fault.
If the trolley runs fine on different track, then it could be the trolley track.
When I did this, the trolley ran fine on other track and the loco didn't run very well on the trolley track.
That meant it the trolley set up was the culprit.
On the Bach Man's advice, I tried a different "plug in" black box and it worked fine.