Hi,
I would like to know what type of connection to use in SolidWorks simulation to represent an axial bearing. I have tried with rigid connection but it does not allow rotation, unlike the bearing connection that does allow rotation, even using rigid connection.

I suggest reviewing Help Topic "Summary of Connectors".
If a Bearing Connector is not a good choice for your setup for some reason, you could look into whether a Pin Connector would meet your needs.
See also:
QA00000113700: Is there a simple example that illustrates the use of bearing connectors and bearing fixtures?
QA00000113087: What is the technical explanation of a pin connector?