For me, relaxing is the key to both and once I learned that it was game on.
Anal was a bit harder to handle because there was some actual pain involved and I had to fight through that and coach myself back into that 'relax' mode.
With giving head, I just had to remind myself that I wasn't going to choke to death on cock.