Refinancing can lower your rate, shorten your term, or let you pull cash out of built-up equity — but it also comes with closing costs that need to be recouped through monthly savings before the move pays off.