This one can be a little tricky. The term "a few" implies a number of times, at least 2-3, and possibly many more. On the other hand, the term "few" (without the "a") implies just the opposite, i.e, a minimal number of times.
So, if you want to let someone know that you tried contacting them several times you would say "I have tried to contact you a few times."