Adult adopted dog just stops in the middle of walks

Our newly adopted five year old pug is an amazing dog, other than walks. She will plant herself down and refuse to walk certain directions. Usually I walk the direction she wants to walk in, but sometimes that direction is into my building before she’s used the bathroom. Also, sometimes she just sits and looks at us like you see here.

We get around this by picking her up, walking a little, putting her down, and seeing if she’ll start walking again. Has anyone ran into this before? We’re not sure what’s going on, but I know she isn’t injured because when we start going home, she’ll start running to go back.