Lionel Messi stepped off the bench to help Barcelona prevail in a six-goal thriller, while Sevilla remain in the hunt for European qualification.