This is a well known scam. Did you give any card or payment details? There is almost certainly nothing wrong with your pc. Microsoft do not cold call. Did they take control of your PC? Do not pay these people.
Run a virus scan and anti-malware scan as a precaution.