David and Sofia,
One does need a buffer or other means of pH control to make sure that the entire analyte peak is in the same state of ionization. If you do not do that (for example if you do not have a buffer), the analyte itself is the only determinant of the ionization. This means that the ionization changes with the concentration, and one gets distorted peaks.
There are several ways to control the ionization of a compound. One is to make up a mobile phase with a pH that is far away from the pK of the analyte. If you do that, the ionization does not change, and you get a nice peak (except for bases interacting with silanols, which is a different subject). The other way is to use a true buffer with a reasonable concentration (5 mM for MS, 20 mM for LC). Contrary to common perception (and to the post by David), this gives symmetrical peaks independent of the pK of the analyte. This is especially true for acids. One can demonstrate this by injecting an acidic sample with a pK of around 4.5 into a acetic acid buffer at pH 4.75. Symmetrical peaks result. If you do the same thing with phosphate at pH 4.75 (no buffering capability) you get tailing.
Bottom line: pH control controls ionization and thus retention and peak shape.
If you are interested, I'll sent you a collection of troubleshooting articles, one of which covers specifically this experiment.