Well thank you everybody, for all of your suggestions. I tried many if not all of them and in the end, the train runs smoothly all over the layout. I found that when cleaning the tracks with goo gone, I found a lot of dirt I didn't know was on the track! I also checked where the rails are joined...