If a tenant's contract has ended, a landlord would expect the tenant to move out accordingly, unless both parties agree to extend. You can move into a new place, assuming that you have signed a tenancy agreement with the landlord of the new house.
For a complete guide on tenancy agreements, take a look at this: https://www.propertyguru.com.my/property-guides/malaysia-tenancy-agreement-guide-and-download-9649
Do note that moving is not permitted during Full Movement Control Order, unless there's a change in the current SOP.
Hope this helps.