Choosing between NIT Jalandhar and NIT Hamirpur depends more on your own conveniences than anything else. It depends on:
Rank
State
Category
Distance between college and home
But still if you already have a choice between these two, go for NIT Harimpur. An additional benefit here is its peaceful and clean environment. Although you will learn better technical skills at NIT Jalandhar still it does not affect much in the long run.