The planets in our solar system all orbit on the same plane because they all formed from the same dust cloud that was rotating in the same plane.
Minute Physics have a nice video on this: https://youtube.com/watch?v=tmNXKqeUtJM
And just to clarify to GP, the original dust was not in the same plane and the video explains why it ends up in the same plane.