The Pokemon will be forced to use struggle. It was only able to use one move, and when you are using only one move and you cannot use it anymore, you struggle. This can happen like you said due to PP loss, or if the opponent uses disable or a similar move.