can: it is used to say you can do something
could: past tense of can; or that you can probably do something
may: it is used to say that you might do something. It's similar to "maybe".
I can write. ( present)
I could write. ( past)
I may write you a letter. ( it means that maybe you will write the letter)