Role of interlayer interaction on magnetic properties and study of two two band model for oxypnictide superconductors