You sure must study the manual, help files, quicksheets, etc. more thoroughly (have you ever done?)
The errors you make a quite endless!
.) you mix up t and T
.) you invent new programming commands like else and end
.) its absolutely unclear what you intend with your two program blocks which you combine with an boolean =. I made a guess
.) you mostly have no units assigned, but you use the built in constang g, which of course is not just a number but has dimension acceleration and has the appropriate units. You can't mix up unit and unitless values
.) same unit problem at your initial conditions - suddenly you use seconds and kph - this can't work. Stay unitless when using odesolve in MC15
.) The syntax for odesolve is absolutely wrong - probably you have seen a sheet written in Prime. You have to stay with the Mathcad 15 instruction and help sheets as the syntax has changed a bit in Prime
Here is a working sheet - not sure if the function was meant that way

But of course you don't need odesolve for your problem. You can derive your functions by simple integrations:
