i try to answer it.
しょうがない means: you want to do sth, but because of some reasons, you cannot do it.
木村さんは今どこにいるのか分からないので、連絡しょうがない
means: you want to connect with him, but you don't know where he is, so you are not able to connect with him
質問の意味が分からなくて、答えようがなかった
means: you want to answer the question, but you don't know the meaning of the question, so you are not able to anwer it.