The simple answer is no, there hasn't.
Every single president has served in one of the three positions you listed.
Chester Arthur comes close - his only elected office was VP in 1880. Arthur was also commissioned as a Brigadier General in the American Civil War, but he never served at the front.