Solvable scalar and spin models with near neighbors interactions