The occasion will usually dictate how long a speech should be.
Depending on the occasion for which you are giving your speech, it could be long or short. If you are thanking people for an award you got, it shouldn't be too long. But if you are asked to give a formal lecture on something, it is usually a long speech.