If you have an electric PTO, it may have a hot short or open, by which I mean, the PTO coil is either shorting to ground or breaking open when it gets hot. After it cools down, it contracts, making a good connection and works properly again. I have also seen PTO switches do the same thing.