Now to your question.
Speed is just a number. It can be expressed as a function that gives just numbers.
Velovity is a vector. It can be expressed as a function (called vector function) that gives both a number and the direction (the vector) in which some body is traveling.