Take it to a Hyundai dealer (recommended) or qualified transmission
diagnosis or repair facility. Jody's correct to check your fluid. It's
also possible you have a problem with your range switch. If you have a
way to do so, you could check for diagnostic trouble codes in the
Transmission Control Module (and Engine Control Module, too).