Chosen Solution

i had my iphone housing and screen repaired and when i got it back it worked for a day or so then shut off now it wont turn on and when it seems to be wanting to come on it gets hot

Whenever there’s excessive heat there’s a short. Hard to tell if some old damaged part was overlooked and mounted in the new housing or a bad new replacement was installed but, either way, take your iPhone back to the repair shop to have it checked as something will eventually fail, it’s only a matter of when.