a Middle English merger of Old English in (prep.) "in, into, upon, on, at, among; about, during;" and Old English inne (adv.) "within, inside," from Proto-Germanic *in (source also of Old Frisian, Dutch, German, Gothic in, Old Norse i), from PIE root *en "in." The simpler form took on both senses in Middle English.
Sense distinction between in and on is from later Middle English, and nuances in use of in and at still distinguish British and American English (in school/at school). Sometimes in Middle English shortened to i.
The noun sense of "influence, access (to power or authorities)," as in have an in with, is first recorded 1929 in American English. to be in for it "certain to meet with something unpleasant" is from 1690s. To be in with "on friendly terms with" is from 1670s. Ins and outs "intricacies, complications of an action or course" is from 1660s. In-and-out (n.) "copulation" is attested from 1610s.
house n.
Old English hus "dwelling, shelter, building designed to be used as a residence," from Proto-Germanic *hūsan (source also of Old Norse, Old Frisian hus, Dutch huis, German Haus), of unknown origin, perhaps connected to the root of hide (v.) [OED]. In Gothic only in gudhus "temple," literally "god-house;" the usual word for "house" in Gothic being according to OED razn.
Meaning "family, including ancestors and descendants, especially if noble" is from c. 1000. Zodiac sense is first attested late 14c. The legislative sense (1540s) is transferred from the building in which the body meets. Meaning "audience in a theater" is from 1660s (transferred from the theater itself, playhouse). Meaning "place of business" is 1580s. The specialized college and university sense (1530s) also applies to both buildings and students collectively, a double sense found earlier in reference to religious orders (late 14c.). As a dance club DJ music style, probably from the Warehouse, a Chicago nightclub where the style is said to have originated.
To play house is from 1871; as suggestive of "have sex, shack up," 1968. House arrest first attested 1936. House-painter is from 1680s. House-raising (n.) is from 1704. On the house "free" is from 1889. House and home have been alliteratively paired since c. 1200.
And the Prophet Isaiah the sonne of Amos came to him, and saide vnto him, Thus saith the Lord, Set thine house in order: for thou shalt die, and not liue. [II Kings xx.1, version of 1611]