My mother went to town to buy bread.

Literal

Mother [topic-は] bread [object-を] buy-[purpose-に] town [to-へ] went-[polite-past-ました]

パンを買いに町へいきました = purpose + destination + polite past. いきました = hiragana spelling of 行きました.