My mare did similar when I got her. I could not saddle or bridle her without help and when she was saddled and we started to ride she would buck or rear and once she got me off, head for the barn.

I had to get some serious help to ride her.