If he's been good prior to this, he may have just had an 'off' day. I guess you won't know until you ride again.
Next time, try doing figure eights instead, so that you are actually doing a bit of both; partly what he prefers, and partly what you really want. Also, working in the center of the arena, can prevent you from getting slammed up against the arena fence; I know it's not really convenient, but it is much more beneficial to be able to circle around in the middle of the ring (in both directions), rather than continue arguing with him on the rail. When you get him going in circles in the center of the arena (do lots of circle changes too; maybe one circle his 'bad' side, and two to the direction he wants, then swap it up...keep things interesting, so he HAS to focus on you. Even riding around barrels in different sequences can make things much more interesting.
Maybe he's tired of ring work, as well; can you ride any place else?
"The ideal horseman has the courage of a lion, the patience of a saint, and the hands of a woman..."