Email serverbug


My windows 10 crashed and I had Microsoft reload 7. I get my e-mails from outlook. Since everything was wiped on my computer, I had to set up email again with my provider (Frontier). They set up but couldn’t get to work. I was getting “bulk mail” emails and they said my email was hacked. They told me to call yahoo since that is there internet provider. When I called, they said would fix for $299.99. When I said I couldn’t afford they would do over phone for $99.99. Told them I shouldn’t have to pay and then they asked my AGE. Could give discount over certain age. I think this was scam.
Anyway, I do not know what to do. I can send/receive email once I changed from POP to IMAP but keep getting error messages about bug. Can anyone help?