AnCoGen: Analysis, Control and Generation of Speech with a Masked Autoencoder