I like being married is correct if you like the state of marriage.
I like to be married sounds wrong. However I'd like to be married is correct if you are not married and would like to try it.
As someone else said:
I like to eat <....> is the food you enjoy, and I like eating <....> sounds more like you enjoy the process.