“Have to” and “have got to” both show necessity, obligation:
I have to go. / I’ve got to go. = It is necessary for me to go.
“Had to” shows that a necessary action was done:
I had to go. = It was necessary for me to go (and I went).