It is quite similar but when you say “tuve hambre” (without tilde), you are talking about something that started and finished. However, when you use “tenía hambre” we don’t know if the action finished.
“Tenía”= pretérito imperfecto
“Tuve”= pretérito perfecto simple.