'Can I have a glass of water.' Is correct.
Usually it's safe to almost always use the contraction, but not in this case where a question is being asked... I wouldn't write it that way. Honestly though, in spoken English, it runs together, so it wouldn't sound too off if you said it quickly. If you said it slowly, it would sound a little strange, though.