Nambu–Jona-Lasinio model in a sphere