my mail account is not syncing.

my mail account is not syncing.


my mail account is not syncing. 
I have a laptop, office Mac Studio and iPhone.
My mails are no longer syncing in apple mail.
Deleted mail automatically undelete themselves 


only webmail seems to work fine
this  is very annoying what can I do to fix this?